Last active
November 1, 2024 13:22
-
-
Save Razikus/f05672edca58ed1d57e4e4623a8b3d11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ ! -f ./jdk-23.0.1.jdk/Contents/Home/bin/java ]; then | |
curl -o java.tar.gz https://download.oracle.com/java/23/latest/jdk-23_macos-aarch64_bin.tar.gz | |
tar -xvf java.tar.gz | |
rm java.tar.gz | |
fi | |
if [ ! -f ./gluegenpatched ]; then | |
if [ ! -f ./jogl-all.jar ]; then | |
echo "jogl-all.jar doesn't exist, first try to run haven" | |
osascript -e 'display dialog "Please run Kami first before continuing." buttons {"OK"} with title "Haven Required" with icon caution' | |
exit 1 | |
fi | |
curl -o jogl.7z https://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z | |
tar -xvf jogl.7z | |
rm jogl.7z | |
cp jogamp-all-platforms/jar/jogl-all-natives-macosx-universal.jar ./ | |
cp jogamp-all-platforms/jar/jogl-all.jar ./ | |
cp jogamp-all-platforms/jar/gluegen-rt.jar ./ | |
cp jogamp-all-platforms/jar/gluegen-rt-natives-macosx-universal.jar ./ | |
rm -r jogamp-all-platforms | |
touch gluegenpatched | |
osascript -e 'display dialog "Jogamp libraries have been updated. Run Haven now" buttons {"OK"} with title "Jogamp Updated" with icon note' | |
fi | |
./jdk-23.0.1.jdk/Contents/Home/bin/java -Xms512m -Xmx2048m -Dsun.java2d.uiScale.enabled=false --add-exports=java.desktop/sun.awt=ALL-UNNAMED -Dhaven.mapbase=http://game.havenandhearth.com/java/ -Dhaven.resurl=https://game.havenandhearth.com/res/ -Dhaven.screenurl=http://game.havenandhearth.com/mt/ss -Dhaven.cachebase=http://game.havenandhearth.com/render/ -jar hafen.jar -U https://game.havenandhearth.com/res/ game.havenandhearth.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment