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
Copy file name to clipboardExpand all lines: README.md
+45-14Lines changed: 45 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Add the following `plugin` tag to your `pom.xml`:
15
15
<plugin>
16
16
<groupId>io.github.fvarrui</groupId>
17
17
<artifactId>javapackager</artifactId>
18
-
<version>0.9.5|0.9.6-SNAPSHOT</version>
18
+
<version>0.9.6|0.9.7-SNAPSHOT</version>
19
19
<executions>
20
20
<execution>
21
21
<phase>package</phase>
@@ -103,19 +103,27 @@ And by default it will generate next artifacts in `target ` folder:
103
103
|`runnableJar`|:x:|`null`| Defines your own JAR file to be bundled. If it's ommited, the plugin packages your code in a runnable JAR and bundle it with the app. |
|`macConfig`|:x:|`null`|[Mac OS X specific configuration](#mac-os-x-config-property) properties. |
114
+
|`winConfig`|:x:|`null`|[Windows specific configuration](#windows-config-property) properties. |
115
+
109
116
> See [**Older documentation**](#older-documentation) for previous versions properties.
110
117
111
118
> :warning: Be careful when using the `platform` property if your project uses platform dependent libraries, so the libraries of the current platform will be copied, not those required for the target platform. You can solve this problem using `classifiers`. Also, customized JRE generation will be ommited.
112
119
113
-
#### Version information property example
120
+
###Platform specific properties
114
121
115
-
Using default values:
122
+
#### Windows config property
116
123
117
124
```xml
118
-
<versionInfo>
125
+
<winConfig>
126
+
<!-- properties used in EXE generation by launch4j -->
119
127
<fileVersion>1.0.0.0</fileVersion>
120
128
<txtFileVersion>${version}</txtFileVersion>
121
129
<productVersion>1.0.0.0</productVersion>
@@ -125,7 +133,28 @@ Using default values:
125
133
<productName>${name}</productName>
126
134
<internalName>${name}</internalName>
127
135
<originalFilename>${name}.exe</originalFilename>
128
-
</versionInfo>
136
+
</winConfig>
137
+
```
138
+
139
+
#### Mac OS X config property
140
+
141
+
```xml
142
+
<macConfig>
143
+
<!-- properties used in DMG disk image generation -->
144
+
<backgroundImage>path/to/png</backgroundImage>
145
+
<windowX>x</windowX>
146
+
<windowY>y</windowY>
147
+
<windowWidth>width</windowWidth>
148
+
<windowHeight>height</windowHeight>
149
+
<iconSize>size</iconSize>
150
+
<textSize>size</textSize>
151
+
<iconX>x</iconX>
152
+
<iconY>y</iconY>
153
+
<appsLinkIconX>x</appsLinkIconX>
154
+
<appsLinkIconY>y</appsLinkIconY>
155
+
<volumeIcon>path/to/icns</volumeIcon>
156
+
<volumeName>${name}</volumeName>
157
+
</macConfig>
129
158
```
130
159
131
160
### Plugin assets
@@ -169,16 +198,17 @@ It is possible to use your own customized templates. You just have to put one of
0 commit comments