From e5a7a006415d1b8016d9dec931dfdf27f5615b3e Mon Sep 17 00:00:00 2001 From: Albin Larsson Date: Thu, 3 Feb 2022 18:25:18 +0100 Subject: [PATCH] Package for Windows (#3) * add dependent DLLs * Grabs OpenJFX ZIPs from the base directory. Added clean target. Default runs all targets. * update readme * update .gitignore for the new build process Co-authored-by: Sebastian Berlin --- .gitignore | 6 +-- README.md | 9 +++-- build.xml | 114 ++++++++++++++++++++++++++++++++++++++++------------- 3 files changed, 95 insertions(+), 34 deletions(-) diff --git a/.gitignore b/.gitignore index 0fe5d92..12373f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ build -store -dist -nbproject\private -/nbproject/private/ bin +tmp pattypan.jar +*.zip diff --git a/README.md b/README.md index f8c2f35..83cedef 100644 --- a/README.md +++ b/README.md @@ -9,15 +9,18 @@ __[:arrow_down: Download](https://github.com/yarl/pattypan/releases)__ ---- ### Build and run -[Apache Ant](https://ant.apache.org/) is used for building Pattypan. You need to have JDK 11 or later installed as well as [a download of OpenJFX](https://gluonhq.com/products/javafx/). In order to download and build source code, do the following: +[Apache Ant](https://ant.apache.org/) is used for building Pattypan. You need to have JDK 11 or later installed as well as [a download of OpenJFX](https://gluonhq.com/products/javafx/) for each platform you want to support. In order to download and build source code, do the following: ``` git clone https://github.com/yarl/pattypan.git cd pattypan -export PATH_TO_FX=path-to-javafx-sdk/lib -ant compile && ant jar +ant ``` +This will run the default `build` target. It assumes that the current directory contains the OpenJFX SDK ZIP(s) and will unpack the required files to the correct locations. The resulting JAR will support Linux, Windows or both. The ZIPs present dictates what platforms will be supported. Note that the ZIPs should have their default name to be included. + +A temporary directory will be used during the build process and removed afterwards. It's default path is *tmp/* and can be set using `ant -Dtmp=...` + You can also set test server or any other server: ``` diff --git a/build.xml b/build.xml index df1056d..60acded 100644 --- a/build.xml +++ b/build.xml @@ -1,7 +1,7 @@ - + + - - + @@ -9,15 +9,90 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -30,26 +105,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -58,4 +113,9 @@ + + + + +