Play with PowerShell

This commit is contained in:
Reinhard Pointner 2016-11-03 03:58:03 +08:00
parent f46185ed6b
commit 61a691e789
1 changed files with 2 additions and 2 deletions

View File

@ -580,9 +580,9 @@
<fileset dir="${dir.lib}/native/win32-x64" />
</copy>
<!-- fetch latest JRE -->
<exec executable="powershell" dir="${basedir.cache}" failonerror="yes">
<arg value="NoProfile ExecutionPolicy Bypass -Command" />
<arg value="Invoke-WebRequest https://raw.githubusercontent.com/rednoah/java-installer/master/release/install-jre.ps1 | Invoke-Expression" />
<arg line="NoProfile ExecutionPolicy Bypass -Command 'Invoke-WebRequest https://raw.githubusercontent.com/rednoah/java-installer/master/release/install-jre.ps1 | Invoke-Expression'" />
</exec>
<copy todir="${dir.dist}/appx/jre">
<tarfileset>