Skip to content

Commit

Permalink
#119 fix configuration error in renameDistribution
Browse files Browse the repository at this point in the history
  • Loading branch information
ylexus committed Aug 11, 2021
1 parent da1a5d2 commit 19907a2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -273,21 +273,24 @@ task runOsSpecificPackaging(type: Exec) {

task renameDistribution() {
onlyIf { !OperatingSystem.current().windows }
doLast {
if (OperatingSystem.current().macOsX) {
if (OperatingSystem.current().macOsX) {
doLast {
ant.move file: "$buildDir/jpackage/$applicationName-${version}.dmg",
tofile: "$fullPackageOutputDir/macOS-jiotty-photos-uploader-${version}.dmg"
inputs.files "$buildDir/jpackage/$applicationName-${version}.dmg"
outputs.files "$fullPackageOutputDir/macOS-jiotty-photos-uploader-${version}.dmg"
}
if (OperatingSystem.current().linux) {
inputs.files "$buildDir/jpackage/$applicationName-${version}.dmg"
outputs.files "$fullPackageOutputDir/macOS-jiotty-photos-uploader-${version}.dmg"
}

if (OperatingSystem.current().linux) {
doLast {
ant.move(todir: fullPackageOutputDir) {
fileset dir: "$buildDir/jpackage", includes: '*.deb,*.rpm'
mapper type: "glob", from: "*", to: "Linux-*"
}
inputs.dir "$buildDir/jpackage"
outputs.dir fullPackageOutputDir
}
inputs.dir "$buildDir/jpackage"
outputs.dir fullPackageOutputDir
}
}

Expand Down

0 comments on commit 19907a2

Please sign in to comment.