mirror of
https://github.com/corda/corda.git
synced 2025-01-16 01:40:17 +00:00
CORPRIV-659: Fix DMG installer.
This commit is contained in:
parent
faefae01e2
commit
22d2244ce7
@ -7,4 +7,4 @@ if [ -z "$JAVA_HOME" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec $DIRNAME/gradlew -PpackageType=dmg javapackage
|
exec $DIRNAME/gradlew -PpackageType=dmg javapackage $*
|
||||||
|
@ -141,7 +141,22 @@ task javapackage(dependsOn: 'distZip') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
copy {
|
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 {
|
filter {
|
||||||
line -> line.replaceAll('@pkg_version@', "$pkg_version")
|
line -> line.replaceAll('@pkg_version@', "$pkg_version")
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
if [ -z "$JAVA_HOME" ]; then
|
if [ -z "$JAVA_HOME" ]; then
|
||||||
echo "Please set JAVA_HOME correctly."
|
echo "**** Please set JAVA_HOME correctly."
|
||||||
else
|
exit 1
|
||||||
# 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
|
|
||||||
fi
|
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
|
||||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user