From 1b854df20210d2e1fa1abd8cb2694f195fca32a0 Mon Sep 17 00:00:00 2001 From: Chris Allan Date: Thu, 5 Jan 2023 10:07:06 +0000 Subject: [PATCH] Create versioned ZIP of app image --- .github/workflows/main.yml | 6 +++--- build.gradle | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 710955c..9b8673a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,13 +52,13 @@ jobs: name: Run jpackage with Gradle (application image only) uses: gradle/gradle-build-action@v2 with: - arguments: jpackageImage + arguments: jpackageImageZip - if: ${{ matrix.os == 'macos-latest' }} name: Upload Mac pkg uses: actions/upload-artifact@v2 with: name: macos-package - path: ./build/jpackage/*.app + path: ./build/distributions/*.zip if-no-files-found: error retention-days: 3 - if: ${{ matrix.os == 'windows-latest' }} @@ -84,6 +84,6 @@ jobs: with: files: | windows-package/*.msi - macos-package/*.app + macos-package/*.zip draft: true fail_on_unmatched_files: true diff --git a/build.gradle b/build.gradle index 7ac76a6..45259bf 100644 --- a/build.gradle +++ b/build.gradle @@ -139,4 +139,9 @@ runtime { imageOptions += ['--java-options', '-Djava.library.path=../lib'] } } + + tasks.register('jpackageImageZip', Zip) { + dependsOn jpackageImage + from layout.buildDirectory.dir("jpackage") + } }