mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +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
|
||||
fi
|
||||
|
||||
exec $DIRNAME/gradlew -PpackageType=dmg javapackage
|
||||
exec $DIRNAME/gradlew -PpackageType=dmg javapackage $*
|
||||
|
@ -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")
|
||||
}
|
||||
|
@ -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
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user