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
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -30,14 +30,15 @@ java -jar packr.jar \
30
30
| Parameter | Meaning |
31
31
| --- | --- |
32
32
| platform | one of "windows32", "windows64", "linux32", "linux64", "mac" |
33
-
| jdk | ZIP file location or URL to ZIP file of an OpenJDK or Oracle JDK build containing a JRE. Prebuild OpenJDK packages can be found at https://github.com/alexkasko/openjdk-unofficial-builds. You can also specify a directory to an unpacked JDK distribution. E.g. using ${java.home} in a build script|
33
+
| jdk |directory, ZIP file, or URL to ZIP file of an OpenJDK or Oracle JDK build containing a JRE. Prebuild OpenJDK packages can be found at https://github.com/alexkasko/openjdk-unofficial-builds. You can also specify a directory to an unpacked JDK distribution. E.g. using ${java.home} in a build script|
34
34
| executable | name of the native executable, without extension such as ".exe" |
35
35
| classpath | file locations of the JAR files to package |
36
36
| mainclass | the fully qualified name of the main class, using dots to delimit package names |
37
37
| vmargs | list of arguments for the JVM, without leading dashes, e.g. "Xmx1G" |
38
38
| resources (optional) | list of files and directories to be packaged next to the native executable |
39
39
| minimizejre | minimize the JRE by removing directories and files as specified by an additional config file. Comes with a few config files out of the box. See below for details on the minimization config file. |
40
40
| output | the output directory |
41
+
| cachejre (optional) | An optional directory to cache the result of JRE extraction and minimization. See below for details. |
41
42
| icon (optional, OS X) | location of an AppBundle icon resource (.icns file) |
42
43
| bundleidentifier (optional, OS X) | the bundle identifier of your Java application, e.g. "com.my.app" |
43
44
| verbose | prints more status information during processing, which can be useful for debugging |
@@ -159,6 +160,12 @@ Packr comes with two such configurations out of the box, [`soft`](https://github
159
160
160
161
There's also a new, *experimental* configuration, [`oraclejre8`](https://github.com/libgdx/packr/blob/master/src/main/resources/minimize/oraclejre8), which reduces size of an Oracle 8 JRE following Oracle's redistribution rules described [here](http://www.oracle.com/technetwork/java/javase/jre-8-readme-2095710.html). It also repacks JAR files, reducing (unpacked) JRE size from about 180 mb to 70 mb. **This version is pretty much untested, so please use with care!**
161
162
163
+
### Cache
164
+
165
+
Extracting and minimizing a JRE can take quite some time. If the `cachejre` option is used, the result of these operations is cached in the given folder, and can be reused in subsequent runs of packr.
166
+
167
+
As of now, packr doesn't do any elaborate checks to validate the content of this cache folder. So if you update the JDK, or change the minimize profile, you need to empty or remove this folder manually to force a change.
168
+
162
169
### Classpath
163
170
164
171
Minimization aside, packr also removes all dynamic libraries which do not match the target platform from your project JAR file(s):
0 commit comments