Skip to content

Commit

Permalink
chore: generalise mac app creation script
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenWickner committed Sep 17, 2021
1 parent 91615fb commit 1969990
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scitos.distribution/build-mac-app.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
#!/bin/sh
#
# Special script for creating a Mac .app Bundle.
# This is not portable, needs to be triggered manually and the following parameters need to be adjusted accordingly.
# This is not portable, needs to be triggered manually and the following parameter needs to be adjusted accordingly.
#
VERSION="2.4.3"
JDK_HOME=/Library/Java/JavaVirtualMachines/adoptopenjdk-16.jdk/Contents/Home

JDK_HOME=$(/usr/libexec/java_home)
JRE_MODULES="java.base,java.compiler,java.desktop,java.prefs,java.scripting,java.sql.rowset,jdk.unsupported"

echo "including Java Version:\n"
java --version
echo "\nfound in" $JDK_HOME

# collect dependencies to mention them in the classpath one-by-one
LIBS=`ls -md target/lib/* | tr -d ','`
java -jar src/main/resources/packr/packr-all-2.7.0.jar \
Expand Down

0 comments on commit 1969990

Please sign in to comment.