Skip to content

Commit

Permalink
try to use the zip executable to just preserve the file permissions w…
Browse files Browse the repository at this point in the history
…ithout explicitly listing them
  • Loading branch information
angryziber committed Feb 11, 2023
1 parent a6bfa15 commit 57ab51a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,9 @@ def macLauncher(def platform) {
}

ant.delete(file: "${dist}/${name}.app/Contents/MacOS/jre/bin/keytool")

def zipName = "${dist}/${project.name}-${platform}-${version}.zip"
ant.zip(destfile: "${dist}/${project.name}-${platform}-${version}.zip") {
ant.zipfileset(dir: "${dist}/${name}.app", excludes: "Contents/MacOS/ipscan,Contents/MacOS/jre/bin/java", prefix: "${name}.app")
// this one should be executable
ant.zipfileset(dir: "${dist}/${name}.app", includes: "Contents/MacOS/ipscan", prefix: "${name}.app", filemode: "755")
ant.zipfileset(dir: "${dist}/${name}.app", includes: "Contents/MacOS/jre/bin/java", prefix: "${name}.app", filemode: "755")
ant.zipfileset(dir: "${dist}/${name}.app", includes: "Contents/MacOS/jre/lib/jspawnhelper", prefix: "${name}.app", filemode: "755")
}
exec("zip -qR $zipName *", dist)

if (System.getenv("APPLE_USER")) {
// TODO: codesign --sign Example --options runtime --entitlements test/test.entitlements --force build/Release/test.app
Expand Down

0 comments on commit 57ab51a

Please sign in to comment.