-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.sh
executable file
·25 lines (23 loc) · 998 Bytes
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
rm -rf target/package
mkdir target/package
cp -r target/dependency target/package/libs
cp target/*.jar target/package/
$JAVA_HOME/bin/jpackage --input target/package/ \
--name "TurnerWettkampf-App" \
--main-jar KuTu-2.2.13.jar \
--main-class ch.seidel.kutu.KuTuApp \
--copyright "Interpolar" \
--vendor "Interpolar" \
--app-version 2.3.3 \
--type dmg \
--dest target \
--java-options "--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.net=ALL-UNNAMED
--add-opens=java.base/java.nio=ALL-UNNAMED
--add-opens=java.base/java.time=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
--add-opens=java.base/sun.util.calendar=ALL-UNNAMED"