Skip to content

Commit 360e7e9

Browse files
committed
Test.
1 parent 719a9a0 commit 360e7e9

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

.github/workflows/gradle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,5 +110,5 @@ jobs:
110110
uses: actions/[email protected]
111111
with:
112112
name: Chatty-Build-${{ env.NEW_TAG_TEXT }}
113-
path: build/releases/*
113+
path: build/jpackage-mac/*
114114

build.gradle

+6-12
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ task jpackageMac(type: Exec, group: 'build') {
345345
def jpackageExec = project.hasProperty('jpackagePath') ? jpackagePath : 'jpackage'
346346

347347
def command = [jpackageExec,
348-
'--type', 'dmg',
348+
'--type', 'app-image',
349349
'--name', 'Chatty',
350350
'--input', new File(macBundleTarget, 'input'),
351351
'--main-jar', 'Chatty.jar',
@@ -360,21 +360,15 @@ task jpackageMac(type: Exec, group: 'build') {
360360
commandLine command
361361
}
362362

363-
task packageDmg {
363+
task packageApp(type: Zip) {
364364
dependsOn jpackageMac
365-
doLast {
366-
copy {
367-
from("${macBundleTarget}") {
368-
include 'Chatty-*.dmg'
369-
rename 'Chatty-(.*).dmg', "Chatty_${version}_mac.dmg"
370-
}
371-
into releasesDir
372-
}
373-
}
365+
from("${macBundleTarget}/Chatty.app")
366+
archiveFileName = "Chatty_${version}_mac.app.zip"
367+
destinationDirectory = releasesDir
374368
}
375369

376370
task releaseMacSetups(group: 'build') {
377-
dependsOn packageDmg
371+
dependsOn packageApp
378372
}
379373

380374
//---------

0 commit comments

Comments
 (0)