spring-cli icon indicating copy to clipboard operation
spring-cli copied to clipboard

Support macos pkg with jpackage

Open jvalkeal opened this issue 2 years ago • 3 comments

We currently have msi for windows, rpm/deb for linux. There was initial restrictions on macos pkg package so that if fails if package version is below 1.0.0. Should look if we need to wait or if there's some workarounds.

jvalkeal avatar Nov 19 '23 13:11 jvalkeal

Yes things fail on jreleaser level. I think it's check in jreleaser itself to fail fast as pkg install on macos would always fail:

Error:  The first number in an app-version cannot be zero or negative (0.8.0).

jvalkeal avatar Nov 19 '23 14:11 jvalkeal

This is a constraint violation that occurs when invoking the jpackage command itself. You may override the computed value by providing an explicit value for the appVersion property in the macos section of the jpackage assembler.

For some odd reason the number must conform to semver (without tags) and the major version must be greater than 0.

aalmiray avatar Nov 28 '23 17:11 aalmiray

Ah yeah I now remember seeing an openjdk ticket adding fast failure. Thanks for a tip to forcing the version. Gotta love apple's logic on these things.

jvalkeal avatar Nov 30 '23 10:11 jvalkeal