You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 29e3392
Browse filesBrowse the repository at this point in the historyBrowse files
- #501 iconFile is used when no platform icon is set and it has the
target platform's format; forwarded by the Gradle PackageTask
- #502 Gradle forwards zipballName and tarballName; the zipball name gets
.zip like with Maven
- #504 stable default msiUpgradeCode (from organization and name), file
and product versions derived from version, same-version MSI upgrades
- #505 Linux jreMinVersion check compares versions numerically
- #506 GDK_BACKEND instead of GDKBACKEND in the pkexec launch
- #507 the Linux startup script execs Java, so its exit code is passed on
- #508 macOS bundle permission rules point to the .jre bundle folder
- #509 notarization zip made with ditto; keyChainProfile is required
- #510 jsign gets no "null" keystore when certfile and keyfile are used
The smoke tests check the exit code on GNU/Linux and the JRE permissions
in the macOS tarball; the docs describe the new behaviour.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix the bugs found while documenting 2.0.0 (#501, #502, #504 to #510), clear the Dependabot alerts (#500) and validate the Velocity templates in CI, then release 2.0.1.
6
+
7
+
## Context
8
+
9
+
- The docs review (2026-10-11) checked every property against the code and found the bugs below; each one has its own issue.
10
+
-`dependabot-alerts.md` and `ci-velocity-template-check.md` hold the other two parts.
11
+
12
+
## Changes
13
+
14
+
| Issue | Fix | Verified by |
15
+
| --- | --- | --- |
16
+
|#501|`iconFile` is used when no platform icon is set and it has the target platform's format (`.png`, `.icns`, `.ico`); otherwise a warning. Forwarded by the Gradle `PackageTask`. | Code review |
17
+
|#502| Gradle `PackageTask` forwards `zipballName` and `tarballName`; Gradle `CreateZipball` appends `.zip` like Maven. | Code review |
18
+
|#504|`msiUpgradeCode` defaults to a name-based UUID (organization and name), logged; `fileVersion`/`productVersion` default to `version` as `x.x.x.x` (or `1.0.0.0` with a warning if it doesn't fit an MSI version); `AllowSameVersionUpgrades="yes"`. | jshell test of the version conversion; Windows smoke tests build the MSI |
19
+
|#505| Linux `compareVersions()` compares the leading digits of each part numerically, `1.x` as `x`; wrapped in `#[[ ]]#`. | Bash test of 9 cases (17 vs 8, 9 vs 11, 1.8 vs 8...) |
20
+
|#506|`GDK_BACKEND=x11` in the `pkexec` launch. | Code review |
21
+
|#507| The Linux script `exec`s Java instead of `exit 0`. | Linux smoke test: `--exit=3` returns 3 (the sample exits with the code given) |
22
+
|#508| macOS bundle permission rules use `${jreDirectoryName}.jre` (Gradle tasks and `mac/assembly.xml.vtl`); Gradle also sets 755 on `lib/jspawnhelper`. | macOS smoke test: `bin/java` and `jspawnhelper` are 755 in the tarball |
23
+
|#509| Notarization zip built with `ditto -c -k --keepParent`; a blank `keyChainProfile` fails early. | Code review (notarization needs an Apple account) |
24
+
|#510|`WindowsSigner` passes the keystore to jsign only when set. | Code review |
25
+
26
+
## Acceptance
27
+
28
+
- Smoke tests green on every platform with the new checks.
29
+
- Each issue gets a "fixed in devel" comment and the `fixed` label; closed when 2.0.1 is released.
30
+
- The release notes list the behaviour changes: `iconFile` now applies, MSI upgrade code and Windows versions derived from the app.
Copy file name to clipboardExpand all lines: docs/content/configuration/common.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ When a default differs between Maven and Gradle, both are given.
22
22
|`organizationName`| Maven: the project's organization, or `ACME`| Organization: DEB maintainer, Windows publisher and version info, macOS copyright. |
|`iconFile`|| App icon, used on the platforms whose format it has (`.png` GNU/Linux, `.icns` macOS, `.ico` Windows) when the platform's icon property isn't set. See [icons and assets](../guides/icons-and-assets.md). |
25
26
|`licenseFile`| Maven: the project's first license URL (downloaded), or `LICENSE`. Gradle: `LICENSE` in the root project | License copied into the app and shown by the Windows installers. |
26
27
27
28
## Packaging
@@ -35,9 +36,9 @@ When a default differs between Maven and Gradle, both are given.
35
36
|`generateInstaller`|`true`| Generates the installers. Each one can also be disabled in its platform config. |
36
37
|`forceInstaller`|`false`| Builds the AppImage, DMG, PKG, Setup, MSI and MSM even when the target platform isn't the one running the build. They need their native tools, so it rarely works. |
37
38
|`createZipball`|`false`| Creates `${name}-${version}-${platform}.zip` with the app folder. |
38
-
|`zipballName`|`${name}-${version}-${platform}`| Zipball name, without extension. Maven only. |
39
+
|`zipballName`|`${name}-${version}-${platform}`| Zipball name, without extension. |
39
40
|`createTarball`|`false`| Creates `${name}-${version}-${platform}.tar.gz` with the app folder. |
40
-
|`tarballName`|`${name}-${version}-${platform}`| Tarball name, without extension. Maven only. |
41
+
|`tarballName`|`${name}-${version}-${platform}`| Tarball name, without extension. |
41
42
42
43
## App contents
43
44
@@ -144,8 +145,3 @@ The script is copied into the app's `scripts` folder.
144
145
| Windows | A `${name}.vbs` script runs it, and then the EXE; installer shortcuts point to the `.vbs`. |
145
146
146
147
On Windows, use a script Windows can run (`.bat`, `.cmd`, `.vbs`...). `scripts` also accepts `preInstall` and `postInstall`, but they aren't implemented yet and are ignored.
147
-
148
-
## Not working as expected
149
-
150
-
-`iconFile` is ignored: set the icon with `linuxConfig.pngFile`, `macConfig.icnsFile` and `winConfig.icoFile`, or put it in `assetsDir` (see [icons and assets](../guides/icons-and-assets.md)).
151
-
-`zipballName` and `tarballName` are ignored by the Gradle plugin.
Copy file name to clipboardExpand all lines: docs/content/configuration/windows.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,7 +52,7 @@ javapackager {
52
52
|`generateSetup`|`true`| Generates the Inno Setup installer `${name}_${version}.exe`. Needs `iscc`. |
53
53
|`generateMsi`|`true`| Generates the MSI installer `${name}_${version}.msi`. Needs WiX. |
54
54
|`generateMsm`|`false`| Generates the MSI merge module `${name}_${version}.msm`. It's also generated whenever `generateMsi` is `true`, because the MSI is built from it. |
55
-
|`msiUpgradeCode`|random, on every build |`UpgradeCode` of the MSI. Set a fixed GUID so a new MSI upgrades the installed version. |
55
+
|`msiUpgradeCode`|derived from `organizationName` and `name`|`UpgradeCode` of the MSI: a new MSI with the same code upgrades the installed version. The build logs it; set it to keep it if the app name or organization change. |
56
56
|`signing`|| Code signing configuration. See [code signing](../guides/code-signing.md#windows). |
57
57
|`registry`|| Registry values written by the installers. See [Registry entries](#registry-entries). |
58
58
@@ -67,9 +67,9 @@ Installers can only be built on Windows; on other platforms they are skipped, un
67
67
|`vmLocation`|`bin/client/jvm.dll` or `bin/server/jvm.dll`|`jvm.dll` path relative to the bundled JRE. WinRun4J only, with `bundleJre`. |
68
68
|`companyName`|`organizationName`| Company name in the EXE version info. |
69
69
|`fileDescription`|`description`| File description in the EXE version info. |
70
-
|`fileVersion`|`1.0.0.0`| File version (`x.x.x.x`). |
70
+
|`fileVersion`|`version` as `x.x.x.x`| File version (`x.x.x.x`). |
71
71
|`txtFileVersion`|`version`| File version as text. Launch4j with Maven only. |
72
-
|`productVersion`|`1.0.0.0`| Product version (`x.x.x.x`). Also the MSI version: increase it for MSI upgrades. |
72
+
|`productVersion`|`version` as `x.x.x.x`| Product version (`x.x.x.x`). Also the MSI version. |
73
73
|`txtProductVersion`|`version`| Product version as text. Launch4j only. |
74
74
|`productName`|`name`| Product name. |
75
75
|`internalName`|`name`| Internal name. |
@@ -136,7 +136,7 @@ The MSI and the MSM are built with [WiX Toolset](https://wixtoolset.org/). If `w
136
136
The MSM (merge module) contains the whole app, a Start menu shortcut and the registry entries; you can merge it into your own MSI. The MSI installs that module for all users in `Program Files` (x64).
137
137
138
138
:::caution MSI upgrades
139
-
For a new MSI to upgrade an installed version, keep the same `msiUpgradeCode` in every release (by default it's a new random GUID on every build) and increase `productVersion` (it defaults to `1.0.0.0`, it isn't taken from `version`). Downgrades and reinstalling the same version are refused.
139
+
A new MSI upgrades the installed version when both have the same `msiUpgradeCode`. By default it's derived from `organizationName` and `name`, so it only changes if they do: if you rename the app or the organization, set `msiUpgradeCode` to the previous code (the build logs it). The MSI version is `productVersion`, by default `version` as `x.x.x.x` (e.g. `2.1.0-SNAPSHOT` becomes `2.1.0.0`); if `version` doesn't fit an MSI version (major and minor up to 255), it's `1.0.0.0`and you should set it. Installing an older version over a newer one is refused.
140
140
:::
141
141
142
142
The MSI doesn't create a desktop shortcut nor register file associations.
0 commit comments