Skip to content

Commit

Permalink
Merge pull request #1395 from petebankhead/mac-version
Browse files Browse the repository at this point in the history
Fix mac version
  • Loading branch information
petebankhead committed Oct 18, 2023
2 parents 0171505 + a1b2c07 commit c222dc0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions qupath-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,10 @@ def configureJPackageMac(JPackageParams params) {
// Can't have any -SNAPSHOT or similar added
params.appVersion = stripVersionSuffix(params.appVersion)

params.imageName = 'QuPath'
params.installerName = 'QuPath'
params.imageName = getCorrectAppName(".app")
if (params.imageName.endsWith(".app"))
params.imageName = params.imageName.substring(0, params.imageName.length() - 4)
params.installerName = getCorrectAppName(".pkg")

// Sadly, on a Mac we can't have an appVersion that starts with 0
// See https://github.com/openjdk/jdk/blob/jdk-16+36/src/jdk.jpackage/macosx/classes/jdk/jpackage/internal/CFBundleVersion.java
Expand Down

0 comments on commit c222dc0

Please sign in to comment.