diff --git a/README.md b/README.md index 5d383b04..f8a83367 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ It was born while teaching to my students how to build and distribute their Java ## Apps packaged with JavaPackager - [Spektar Design Lab](https://spektar.io/) +- [Astro Pixel Processor](https://www.astropixelprocessor.com/) +- [GistFX](https://github.com/RedmondSims/GistFX) ## How to use this plugin diff --git a/docs/maven/plugin-configuration-samples.md b/docs/maven/plugin-configuration-samples.md index ddff9496..fc4a1cfd 100644 --- a/docs/maven/plugin-configuration-samples.md +++ b/docs/maven/plugin-configuration-samples.md @@ -1,238 +1,220 @@ # Plugin configuration samples for Maven - ## Minimal config - ```xml - io.github.fvarrui - javapackager - {latest-plugin-version-here} - - - package - - package - - - fvarrui.sample.Main - - - + io.github.fvarrui + javapackager + {latest-plugin-version-here} + + + package + + package + + + fvarrui.sample.Main + + + ``` - Also, JavaPackager plugin is able to get some properties from `pom.xml`, so you don't need to specify them twice: - ```xml - - fvarrui.sample.Main - - - - - io.github.fvarrui - javapackager - {latest-plugin-version-here} - - - package - - package - - - - - - + + fvarrui.sample.Main + + + + + io.github.fvarrui + javapackager + {latest-plugin-version-here} + + + package + + package + + + + + + ``` > :warning: This minimal configuration will not bundle a JRE, so final user will need one in order to run the app. - ## Bundle with a customized JRE - ```xml - io.github.fvarrui - javapackager - {latest-plugin-version-here} - - - package - - package - - - fvarrui.sample.Main - true - - - + io.github.fvarrui + javapackager + {latest-plugin-version-here} + + + package + + package + + + fvarrui.sample.Main + true + + + ``` - > `customizedJre` is `true` by default, so you don't have to specify it. - ## Bundle with a full JRE - ```xml - io.github.fvarrui - javapackager - {latest-plugin-version-here} - - - package - - package - - - fvarrui.sample.Main - true - false - - - + io.github.fvarrui + javapackager + {latest-plugin-version-here} + + + package + + package + + + fvarrui.sample.Main + true + false + + + ``` - ## Bundle with an existing JRE - ```xml - io.github.fvarrui - javapackager - {latest-plugin-version-here} - - - package - - package - - - fvarrui.sample.Main - true - C:\Program Files\Java\jre1.8.0_231 - - - + io.github.fvarrui + javapackager + {latest-plugin-version-here} + + + package + + package + + + fvarrui.sample.Main + true + C:\Program Files\Java\jre1.8.0_311 + + + ``` - ## Bundle your own fat JAR - ```xml - io.github.fvarrui - javapackager - {latest-plugin-version-here} - - - package - - package - - - fvarrui.sample.Main - true - path/to/your/own/fat.jar - false - - - + io.github.fvarrui + javapackager + {latest-plugin-version-here} + + + package + + package + + + fvarrui.sample.Main + true + path/to/your/own/fat.jar + false + + + ``` - ## Multiple executions - ```xml - io.github.fvarrui - javapackager - {latest-plugin-version-here} + io.github.fvarrui + javapackager + {latest-plugin-version-here} - fvarrui.sample.Main + fvarrui.sample.Main - - - bundle-with-jre - package - - package - - - Sample - true - - - - bundle-without-jre - package - - package - - - Sample-nojre - false - - - + + + bundle-with-jre + package + + package + + + Sample + true + + + + bundle-without-jre + package + + package + + + Sample-nojre + false + + + ``` - E.g. on Windows, last configuration will generate next artifacts: * `Sample_x.y.z.exe` with a bundled JRE. * `Sample-nojre_x.y.z.exe` without JRE. - ## Bundling for multiple platforms - ```xml - io.github.fvarrui - javapackager - {latest-plugin-version-here} + io.github.fvarrui + javapackager + {latest-plugin-version-here} true - fvarrui.sample.Main + fvarrui.sample.Main false - - - - bundling-for-windows - package - - package - - + + + + bundling-for-windows + package + + package + + windows true - - - - bundling-for-linux - package - - package - - + + + + bundling-for-linux + package + + package + + linux true X:\\path\to\linux\jdk - - - - bundling-for-mac - package - - package - - + + + + bundling-for-mac + package + + package + + mac true X:\\path\to\mac\jdk - - - + + + ``` diff --git a/docs/windows-specific-properties.md b/docs/windows-specific-properties.md index caab8263..069f9285 100644 --- a/docs/windows-specific-properties.md +++ b/docs/windows-specific-properties.md @@ -38,6 +38,7 @@ true|false true|false true|false + true|false true|false true|false true|false @@ -105,6 +106,7 @@ | `disableDirPage` | :x: | `true` | If this is set to `true`, Setup will not show the **Select Destination Location** wizard page. | | `disableProgramGroupPage` | :x: | `true` | If this is set to `true`, Setup will not show the **Select Start Menu Folder** wizard page. | | `disableFinishedPage` | :x: | `true` | If this is set to `true`, Setup will not show the **Setup Completed** wizard page. | +| `disableRunAfterInstall` | :x: | `true` | If this is set to `true`, Setup will not **launch the application** after install. | | `disableWelcomePage` | :x: | `true` | If this is set to `true`, Setup will not show **Welcome Page**. | | `createDesktopIconTask` | :x: | `true` | If this is set to `true`, Setup will ask for **desktop icon creation**. | | `removeOldLibs` | :x: | `false` | If there's a previous installation, removes old `libs` folder before install. | diff --git a/src/main/java/io/github/fvarrui/javapackager/model/WindowsSigning.java b/src/main/java/io/github/fvarrui/javapackager/model/WindowsSigning.java index e677fa18..f565b314 100644 --- a/src/main/java/io/github/fvarrui/javapackager/model/WindowsSigning.java +++ b/src/main/java/io/github/fvarrui/javapackager/model/WindowsSigning.java @@ -1,13 +1,16 @@ package io.github.fvarrui.javapackager.model; import java.io.File; +import java.io.Serializable; import org.apache.commons.lang3.StringUtils; /** * Info needed for signing EXEs on Windows */ -public class WindowsSigning { +public class WindowsSigning implements Serializable { + + private static final long serialVersionUID = 2559089741502151307L; private String storetype; private File keystore;