Created
November 1, 2024 11:06
-
-
Save Razikus/07b1b127644f377031fafeb062539426 to your computer and use it in GitHub Desktop.
havenrun.command
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 | |
cd "$(dirname "$0")" | |
# check if jdk-23.0.1.jdk exists | |
if [ -d "./jdk-23.0.1.jdk" ]; then | |
echo "JDK 23.0.1 already downloaded" | |
else | |
curl -o java.tar.gz https://download.oracle.com/java/23/latest/jdk-23_macos-x64_bin.tar.gz | |
tar -xvf java.tar.gz | |
rm java.tar.gz | |
fi | |
# check if launcher-hafen.jar exists | |
if [ -f "./launcher-hafen.jar" ]; then | |
echo "Launcher already downloaded" | |
else | |
curl -o launcher-hafen.jar https://enderwiggin.github.io/hafen/launcher-hafen.jar | |
fi | |
arch -x86_64 ./jdk-23.0.1.jdk/Contents/Home/bin/java -jar launcher-hafen.jar | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment