In the JavaPackager documentation the default bundle names are described.
For example, for a zip file:
- "${name}-${version}-${platform}.zip"
I'd like to change those.
For example having :
- "${name}-${version}-${platform}-Full.zip" for the bundle with the Jre, and
- "${name}-${version}-${platform}-Light.zip" for the bundle without Jre.
Setting the ${name} property to e.g. "MyApp-Full" will affect the whole chain. From the bundle name to the exe name. I'd like to avoid this.
Edit: So my goal is to to build to zip files, one with one without the jre, with a different label, but with the same executable name inisde.
E.g. myapp-1.0.0-windows-Full.zip and myapp-1.0.0-windows-Light.zip with both a myapp.exe executable inside.
Anyone knows the solution ?
There is no direct option in
JavaPackagerto change the name of the build. But you can achieve that by executingmaven-antrun-pluginafterjavapackagerplugin assuming you are using maven.Need to create 2 builds. With JRE (Full) and without JRE (Light).
You can add
maven-antrun-pluginto copy generated zip file to the target folder with the name you want.You need to place
build.xmlat the root of the project somaven-antrun-plugincan execute that.Now once you run
mvn clean packagecommand you will havemyapp-1.0.0-windows-Full.zipandmyapp-1.0.0-windows-Light.zipin thetargetdirectory.