Skip to content

Commit 70a9a95

Browse files
committed
win distr
1 parent f9800e7 commit 70a9a95

File tree

4 files changed

+27
-9
lines changed

4 files changed

+27
-9
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,19 @@ jobs:
2020
with:
2121
p12-file-base64: ${{ secrets.MACOS_DEV_CERT }}
2222
p12-password: ${{ secrets.MACOS_DEV_CERT_PASSWORD }}
23-
- run: |
23+
- name: Build
24+
run: |
2425
chmod 755 mvnw
2526
./mvnw clean package --batch-mode --no-transfer-progress
26-
- run: |
27+
- name: Create executable
28+
id: vars
29+
run: |
2730
$JAVA_HOME/bin/jpackage @target/jpackage-macos.args --type dmg
31+
echo "distr_name=$(cd target/distr/macos && ls *.dmg)" >> $GITHUB_OUTPUT
2832
- name: Notarize Release Build
2933
uses: lando/notarize-action@v2
3034
with:
31-
product-path: target/distr/macos/ZooInspectorN-1.1.dmg
35+
product-path: target/distr/macos/${{ steps.vars.outputs.distr_name }}
3236
appstore-connect-username: ${{ secrets.MACOS_NOTARIZATION_USERNAME }}
3337
appstore-connect-password: ${{ secrets.MACOS_NOTARIZATION_PASSWORD }}
3438
appstore-connect-team-id: ${{ secrets.MACOS_NOTARIZATION_TEAM_ID }}
@@ -49,7 +53,13 @@ jobs:
4953
- run: |
5054
./mvnw clean package --batch-mode --no-transfer-progress
5155
- run: |
52-
%JAVA_HOME%\bin\jpackage.exe @target\jpackage-win.args --type exe
56+
%JAVA_HOME%\bin\jpackage.exe @target\jpackage-win.args ^
57+
--type exe ^
58+
--win-per-user-install ^
59+
--win-shortcut ^
60+
--win-menu ^
61+
--win-menu-group ZooInspector ^
62+
--win-upgrade-uuid a68e451c-3cae-4e4a-bf2b-eedf7c501414
5363
shell: cmd
5464
- uses: softprops/action-gh-release@v2
5565
with:

etc/build-win.bat

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ set JAVA_HOME=%JAVA17_HOME%
88
call mvn clean package -DskipTests
99

1010
"%JAVA_HOME%\bin\jpackage.exe" @target\jpackage-win.args --type app-image
11-
"%JAVA_HOME%\bin\jpackage.exe" @target\jpackage-win.args --type exe
12-
13-
11+
"%JAVA_HOME%\bin\jpackage.exe" @target\jpackage-win.args ^
12+
--type exe ^
13+
--win-per-user-install ^
14+
--win-shortcut ^
15+
--win-menu ^
16+
--win-menu-group ZooInspector ^
17+
--win-upgrade-uuid a68e451c-3cae-4e4a-bf2b-eedf7c501414
18+
19+
rem --win-dir-chooser ^
20+
rem --win-shortcut-prompt ^
21+
1422
endlocal

src/assembly/jpackage-macos.args

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
--mac-sign
77
--app-version ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}
88
--main-jar ${project.build.finalName}.jar
9-
9+
--java-options "-XX:MinHeapFreeRatio=15 -XX:MaxHeapFreeRatio=30"

src/assembly/jpackage-win.args

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
--vendor Viktor44
66
--app-version ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}
77
--main-jar ${project.build.finalName}.jar
8-
8+
--java-options "-XX:MinHeapFreeRatio=15 -XX:MaxHeapFreeRatio=30"

0 commit comments

Comments
 (0)