fix archive issues

This commit is contained in:
Craig Raw 2021-03-20 14:48:24 +02:00
parent 28ee16279c
commit 8b3ed8171b

View file

@ -182,15 +182,24 @@ jlink {
} }
} }
task removeGroupWritePermission(type: Exec) {
commandLine 'chmod', '-R', 'g-w', "$buildDir/jpackage/Sparrow"
}
task packageZipDistribution(type: Zip) { task packageZipDistribution(type: Zip) {
archiveFileName = "Sparrow-${sparrowVersion}.zip" archiveFileName = "Sparrow-${sparrowVersion}.zip"
destinationDirectory = file("$buildDir/jpackage") destinationDirectory = file("$buildDir/jpackage")
from "$buildDir/jpackage/Sparrow" from("$buildDir/jpackage/") {
include "Sparrow/**"
}
} }
task packageTarDistribution(type: Tar) { task packageTarDistribution(type: Tar) {
dependsOn removeGroupWritePermission
archiveFileName = "sparrow-${sparrowVersion}.tar.gz" archiveFileName = "sparrow-${sparrowVersion}.tar.gz"
destinationDirectory = file("$buildDir/jpackage") destinationDirectory = file("$buildDir/jpackage")
compression = Compression.GZIP compression = Compression.GZIP
from "$buildDir/jpackage/Sparrow" from("$buildDir/jpackage/") {
include "Sparrow/**"
}
} }