Repository navigation
Conversation
- problem: two package executions in one build write the same zip/tar file, and the name property has no effect on the archive name - cause: since c8f54bf the maven zip/tar name comes from build.finalName instead of the packager's name and version - solution: use name and version again, like the README documents and like the gradle plugin does The rename is still there, so the read-only finalName warning from c8f54bf does not come back. It now replaces an existing file, because File.renameTo does not do that on Windows. Signed-off-by: Till Seifert <me@till.seifert.name>
- The sample creates the zipball and tarball; the check scripts verify ${name}-${version}-${platform}.zip and .tar.gz (#489).
- macOS: install the app from the DMG (copy to /Applications) and from the PKG (installer), open it through Launch Services like the Finder does, and check its output, appArgs and vmArgs. Based on the integration test in #487.
Co-Authored-By: Jacob Burroughs <maths22@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks a lot for the fix and the clear explanation! 🙏
I also added it to the smoke tests: the sample app now creates the zipball and tarball on GNU/Linux, Windows and macOS, with both Maven and Gradle, and CI checks they're named It's in |
Since c8f54bf the maven zip/tar name comes from
build.finalNameinstead of the packager'snameandversion.So
namehas no effect on the archive name. With two package executions in one build, both write the same file. On Linux the second one overwrites the first. On Windows the rename fails and the archive keeps the name${build.finalName}.zip:The README documents
${name}-${version}-${platform}.zip, and the gradle plugin still creates that name. This PR updates the maven plugin so it behaves the same way.The rename is still there, so the read-only
finalNamewarning from c8f54bf does not come back. It now replaces an existing file, becauseFile.renameTodoes not do that on Windows. Otherwise a rebuild withoutcleankeeps the old archive.zipballNameandtarballNamestill work as before. For projects wherenameis not the artifactId, the default file name changes.