diff --git a/.gitignore b/.gitignore index 8a8ce54..51b5550 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ /bin /ant_build +/launch4j globalreplace.jar +globalreplace.exe # OS Generated files .DS_Store diff --git a/README.md b/README.md index efa03bf..44caf17 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Replaces file usage globally in the Wikimedia Wikifarm. This java program requires a minimum version of Java 8 installed. Consult [the wiki page](https://commons.wikimedia.org/wiki/Commons:GlobalReplace) for further instructions. ## Compile +### Jar [Download the precompiled jar file](https://github.com/Commonists/GlobalReplace/releases) or build it yourself after downloading the source with a simple ``` @@ -12,3 +13,12 @@ ant ``` You need [Apache Ant](http://ant.apache.org) installed. + +### Windows exe +To also build the windows exe: + +``` +ant dist +``` + +You need to download launch4j into the folder `./launch4j`. diff --git a/ant_dist/launch4jconfig.xml b/ant_dist/launch4jconfig.xml new file mode 100644 index 0000000..2f17c73 --- /dev/null +++ b/ant_dist/launch4jconfig.xml @@ -0,0 +1,26 @@ + + + false + gui + globalreplace.jar + globalreplace.exe + + + . + normal + http://java.com/download + + false + false + + + + + false + false + 1.8.0 + 2.0.0 + preferJre + 64/32 + + diff --git a/build.xml b/build.xml index 7350324..a17a22e 100644 --- a/build.xml +++ b/build.xml @@ -1,19 +1,22 @@ + + + - - - - - + + + + + - + @@ -21,6 +24,13 @@ - + + + + + + + +