diff --git a/src/build.py b/src/build.py
index 19cbcfa757..313114c85b 100755
--- a/src/build.py
+++ b/src/build.py
@@ -456,6 +456,9 @@ def make_package(args):
ap.add_argument('--meta-data', dest='meta_data', action='append',
help='Custom key=value to add in application metadata')
+ ap.add_argument('--resource', dest='resource', action='append',
+ help='Custom key=value to add in strings.xml resource file')
+
args = ap.parse_args()
if not args.dir and not args.private and not args.launcher:
@@ -470,6 +473,9 @@ def make_package(args):
if args.meta_data is None:
args.meta_data = []
+ if args.resource is None:
+ args.resource = []
+
if args.compile_pyo:
if PYTHON is None:
ap.error('To use --compile-pyo, you need Python 2.7.1 installed '
diff --git a/src/templates/strings.xml b/src/templates/strings.xml
index dc0440b5eb..f5d30e721c 100644
--- a/src/templates/strings.xml
+++ b/src/templates/strings.xml
@@ -9,4 +9,8 @@
{{ public_version }}
{% endif %}
{{ url_scheme }}
+{% for m in args.resource %}
+{{ m.split('=', 1)[-1] }}
+{% endfor %}
+