diff --git a/README.md b/README.md index f16d17c1..25c83756 100644 --- a/README.md +++ b/README.md @@ -39,9 +39,11 @@ opsu! is distributed as a Maven project. * To run the project, execute the Maven goal `compile exec:exec`. * To create a single executable JAR file, execute the Maven goal -`package shade:shade`. Note that the LWJGL native libraries must be linked and -distributed with this application; [JarSplice](http://ninjacave.com/jarsplice) -is included in the tools directory to merge the files into a fat jar. + `install -Djar`. This will link the LWJGL native libraries using a + [modified version](https://github.com/itdelatrisu/JarSplicePlus) of + [JarSplice](http://ninjacave.com/jarsplice), which is included in the + `tools` directory in both its original and modified forms. The resulting + file will be located in `target/opsu-${version}-runnable.jar`. ## Credits This software was created by Jeffrey Han diff --git a/pom.xml b/pom.xml index 547ac53d..b363b882 100644 --- a/pom.xml +++ b/pom.xml @@ -10,12 +10,16 @@ res + + **/Thumbs.db + org.apache.maven.plugins maven-compiler-plugin + 3.2 1.7 1.7 @@ -39,26 +43,66 @@ org.codehaus.mojo exec-maven-plugin - - java - - -Djava.library.path="${project.build.directory}\natives" - -cp - - itdelatrisu.opsu.Opsu - - + 1.3.2 + + + run + compile + + exec + + + ${jar} + java + + -Djava.library.path="${project.build.directory}\natives" + -cp + + itdelatrisu.opsu.Opsu + + + + + jarsplice + install + + exec + + + java + ${basedir}/target + + -jar + -Dinput="opsu-${project.version}.jar" + -Dmain="itdelatrisu.opsu.Opsu" + -Doutput="opsu-${project.version}-runnable.jar" + ${basedir}/tools/JarSplicePlus.jar + + + + maven-shade-plugin + 2.3 + false + + + package + + shade + + + diff --git a/tools/JarSplicePlus.jar b/tools/JarSplicePlus.jar new file mode 100644 index 00000000..1b5202a4 Binary files /dev/null and b/tools/JarSplicePlus.jar differ