Setting system properties in installApp task

I’d like to add system properties to the generated installApp script (application plugin).

With optsEnvironmentVar I can set the name of variable, but what I want is to set the value in the build.gradle as well, like run task.

ex: systemProperties = [‘env’:‘value’]

How I can do that without setting variable values in the underline OS? Thanks

GRADLE-1456 is related to this.