-
Notifications
You must be signed in to change notification settings - Fork 0
/
jpackage-x86_64.sh
executable file
·32 lines (27 loc) · 1.05 KB
/
jpackage-x86_64.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
26
27
28
29
30
31
32
#!/bin/sh
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home"
APP_NAME="CSVDLTool"
APP_VERSION="2.1.4"
SM_KEY_PAIR="key_798313656"
jpackage \
--name ${APP_NAME}-${APP_VERSION}-x86_64 \
--mac-package-name ${APP_NAME} \
--type "app-image" \
--input build/libs \
--dest build/ \
--main-jar ${APP_NAME}-${APP_VERSION}.jar \
--main-class com.contrastsecurity.csvdltool.Main \
--java-options -XstartOnFirstThread \
--java-options -Xms256m \
--java-options -Xmx512m \
--java-options "--add-opens java.base/java.time.format=ALL-UNNAMED" \
--java-options "--add-opens java.base/java.util.regex=ALL-UNNAMED" \
--icon src/main/resources/csvdltool.icns \
--vendor "Contrast Security Japan G.K." \
--copyright "Copyright (c) 2020 Contrast Security Japan G.K."
smctl-mac-x64 sign \
--keypair-alias ${SM_KEY_PAIR} \
--config-file /Users/turbou/digicert/pkcs11properties.cfg \
--input build/${APP_NAME}-${APP_VERSION}-x86_64.app/
cd build && 7z a ${APP_NAME}-${APP_VERSION}-x86_64.cli7z ${APP_NAME}-${APP_VERSION}-x86_64.app/
exit 0