diff --git a/README.md b/README.md index 3034c28..f8c2f35 100644 --- a/README.md +++ b/README.md @@ -9,12 +9,13 @@ __[: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 an download of OpenJFX. 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/). In order to download and build source code, do the following: ``` git clone https://github.com/yarl/pattypan.git cd pattypan -ant compile -DopenjfxSDKPath="/path-to-openjfx-sdk/" && ant jar +export PATH_TO_FX=path-to-javafx-sdk/lib +ant compile && ant jar ``` You can also set test server or any other server: @@ -27,30 +28,6 @@ java -jar pattypan.jar wiki="test2.wikipedia.org" protocol="https://" scriptPath Please note, that on test server file upload may be disabled for regular users. Admin account is suggested, you can request rights [here](https://test.wikipedia.org/wiki/Wikipedia:Requests/Permissions). If you have problems with program running, check [article on project wiki](https://github.com/yarl/pattypan/wiki/Run). -### Additional information for Ubuntu, Debian and Fedora based distributions -These linux distributions may require additional ```openjfx``` package. After installing Java on your system, download and install the ```openjfx``` package. You can install it by running: - -``` -sudo apt-get install openjfx -``` - -on your terminal. -You can also check this link: https://pkgs.org/download/openjfx for more information on ```openjfx``` package for these distributions. - -Starting with Ubuntu 18.10 (and around the same time in Debian Sid), openjfx version 8 is no more shipped with the distribution. Though it is possible to force the openjfx to stay in version 8, and run pattypan, this is pretty much a hack. If you still wish to proceed, you can gain access to the Ubuntu 18.04 repository by adding the following line to your `/etc/apt/sources.list` file: - -``` -deb-src http://fr.archive.ubuntu.com/ubuntu/ bionic universe multiverse -``` - -You can then run these commands to perfom the installation and pin these versions: -``` -apt purge openjfx -apt install openjfx=8u161-b12-1ubuntu2 libopenjfx-jni=8u161-b12-1ubuntu2 libopenjfx-java=8u161-b12-1ubuntu2 -apt-mark hold openjfx libopenjfx-jni libopenjfx-java -``` - - ### License Copyright (c) 2016 Paweł Marynowski. diff --git a/build.xml b/build.xml index 8acb18b..c5ac5b0 100644 --- a/build.xml +++ b/build.xml @@ -1,5 +1,7 @@ + + @@ -8,31 +10,47 @@ - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - diff --git a/src/pattypan/Launcher.java b/src/pattypan/Launcher.java new file mode 100644 index 0000000..1e583b2 --- /dev/null +++ b/src/pattypan/Launcher.java @@ -0,0 +1,11 @@ +package pattypan; + +import javafx.application.Platform; + +public class Launcher { + public static void main(String[] args) { + // Initialise JavaFX. + Platform.startup(() -> {}); + Main.main(args); + } +}