Added local java compiler build script

This commit is contained in:
Duy Tran Khanh committed 2021-06-02 06:29:00 +07:00
1 parent f9270d2a46
commit a93bc7028e
1 file changed
+20
+20
View File
@@ -0,0 +1,20 @@
# This one is only used for local compile on developer iphone, do not execute if
# - You don't know what will it does.
# - No OpenJDK installed.
/bin/bash <<'EOF'
set -e
shopt -s globstar
mkdir -p local_out/classes
javac -cp "libs/*" -d local_out/classes src/main/java/**/*.java
cd local_out/classes
jar -c -f ../launcher.jar *
cp ../launcher.jar /Applications/PojavLauncher.app/libs/launcher.jar
echo "BUILD SUCCESSFUL"
EOF