diff --git a/.gitignore b/.gitignore
index 2e3a0fec..9f668884 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,4 +4,5 @@
/config.properties
/bin
/setup_new.nsi
-/.metadata
\ No newline at end of file
+/.metadata
+/Deploy
diff --git a/BUILD.md b/BUILD.md
index 06f3559d..2b8d1361 100644
--- a/BUILD.md
+++ b/BUILD.md
@@ -2,42 +2,24 @@
## Requirements
-Download [Java SE Runtime Environment](http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html)
-for Linux x86 and Linux x64 platform in ".tar.gz" format.
-
-```
-cd ./jre
-wget http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jre-8u101-linux-i586.tar.gz
-tar xf jre-8u101-linux-i586.tar.gz
-mv jre1.8.0_101 linjre32
-wget http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jre-8u101-linux-x64.tar.gz
-tar xf jre-8u101-linux-x64.tar.gz
-mv jre1.8.0_101 linjre64
-tar cf linjre.tar linjre32 linjre64
-cd ..
-```
-
-Install p7zip:
-
-```ShellSession
-apt-get install p7zip
-```
-
-Add bin folder:
+Java JDK installed as well as ant.
+It should work with the openjdk and ant packages from ubuntu.
```ShellSession
-mkdir ./bin
+sudo apt install openjdk-11-jdk
+sudo apt install ant
```
## Build
```ShellSession
+ant -buildfile ant/build-jar.xml
ant -buildfile ant/deploy-release.xml
-ant -buildfile ant/setup-linux.xml binaries
+ant -buildfile ant/setup-release.xml
```
Now you can run newly released FlashTool from `Deploy/FlashTool`:
```ShellSession
-./../Deploy/FlashTool/FlashTool
+./Deploy/FlashTool/FlashTool
```
diff --git a/ant/build-jar.xml b/ant/build-jar.xml
new file mode 100644
index 00000000..add5e5e5
--- /dev/null
+++ b/ant/build-jar.xml
@@ -0,0 +1,110 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ant/deploy-beta.xml b/ant/deploy-beta.xml
index f5d71841..6a657e95 100644
--- a/ant/deploy-beta.xml
+++ b/ant/deploy-beta.xml
@@ -1,23 +1,23 @@
-
+
-
+
-
-
+
+
-
-
-
+
+
+
-
+
@@ -30,58 +30,58 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
-
-
+
+
+
-
-
-
+
+
+
-
-
-
+
+
+
-
+
diff --git a/ant/deploy-release.xml b/ant/deploy-release.xml
index 0ddc1298..7458ec9c 100644
--- a/ant/deploy-release.xml
+++ b/ant/deploy-release.xml
@@ -4,16 +4,16 @@
-
+
-
+
-
+
-
+
@@ -22,18 +22,18 @@
-
+
-
-
+
+
-
-
+
+
-
+
@@ -46,36 +46,36 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
@@ -89,24 +89,24 @@
-
-
-
-
+
+
+
+
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -114,26 +114,26 @@
-
-
-
-
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -141,28 +141,28 @@
-
-
+
+
-
+
-
-
-
+
+
+
-
-
-
+
+
+
diff --git a/ant/setup-release.xml b/ant/setup-release.xml
index 265345df..ac9d90da 100644
--- a/ant/setup-release.xml
+++ b/ant/setup-release.xml
@@ -1,30 +1,30 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
- Running jlink to generate custom runtime
-
+
+ Running jlink to generate custom runtime
+
@@ -33,20 +33,20 @@
-
-
-
+
+
-
+
-
+
-
+
@@ -55,10 +55,10 @@
-
-
+
+
-
+
@@ -75,10 +75,10 @@
-
+
-
+
@@ -92,34 +92,34 @@
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
-
+
+
-
+
@@ -128,7 +128,7 @@
-
+