Skip to content

Commit 1b854df

Browse files
committed
Create versioned ZIP of app image
1 parent 498faef commit 1b854df

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ jobs:
5252
name: Run jpackage with Gradle (application image only)
5353
uses: gradle/gradle-build-action@v2
5454
with:
55-
arguments: jpackageImage
55+
arguments: jpackageImageZip
5656
- if: ${{ matrix.os == 'macos-latest' }}
5757
name: Upload Mac pkg
5858
uses: actions/upload-artifact@v2
5959
with:
6060
name: macos-package
61-
path: ./build/jpackage/*.app
61+
path: ./build/distributions/*.zip
6262
if-no-files-found: error
6363
retention-days: 3
6464
- if: ${{ matrix.os == 'windows-latest' }}
@@ -84,6 +84,6 @@ jobs:
8484
with:
8585
files: |
8686
windows-package/*.msi
87-
macos-package/*.app
87+
macos-package/*.zip
8888
draft: true
8989
fail_on_unmatched_files: true

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,9 @@ runtime {
139139
imageOptions += ['--java-options', '-Djava.library.path=../lib']
140140
}
141141
}
142+
143+
tasks.register('jpackageImageZip', Zip) {
144+
dependsOn jpackageImage
145+
from layout.buildDirectory.dir("jpackage")
146+
}
142147
}

0 commit comments

Comments
 (0)