CORPRIV-659: Fix DMG installer.

This commit is contained in:
Chris Rankin 2017-02-21 15:35:50 +00:00
parent faefae01e2
commit 22d2244ce7
5 changed files with 26 additions and 10 deletions

View File

@ -7,4 +7,4 @@ if [ -z "$JAVA_HOME" ]; then
exit 1
fi
exec $DIRNAME/gradlew -PpackageType=dmg javapackage
exec $DIRNAME/gradlew -PpackageType=dmg javapackage $*

View File

@ -141,7 +141,22 @@ task javapackage(dependsOn: 'distZip') {
}
copy {
from("$projectDir/package")
from("$projectDir/package") {
exclude '**/*.spec'
exclude '**/*.sh'
exclude '**/*.wsf'
exclude '**/*.manifest'
}
into "$pkg_source/package"
}
copy {
from("$projectDir/package") {
include '**/*.spec'
include '**/*.sh'
include '**/*.wsf'
include '**/*.manifest'
}
filter {
line -> line.replaceAll('@pkg_version@', "$pkg_version")
}

View File

@ -1,10 +1,11 @@
if [ -z "$JAVA_HOME" ]; then
echo "Please set JAVA_HOME correctly."
else
# Switch to folder containing application.
cd ../images/DemoBench.app
INSTALL_HOME=Contents/PlugIns/Java.runtime/Contents/Home/jre/bin
mkdir -p $INSTALL_HOME
cp $JAVA_HOME/jre/bin/java $INSTALL_HOME
echo "**** Please set JAVA_HOME correctly."
exit 1
fi
# Switch to folder containing application.
cd ../images/image-*/DemoBench.app
INSTALL_HOME=Contents/PlugIns/Java.runtime/Contents/Home/jre/bin
mkdir -p $INSTALL_HOME
cp $JAVA_HOME/jre/bin/java $INSTALL_HOME