Advertisement
Guest User

Untitled

a guest
Dec 6th, 2022
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.26 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. if [[ ! -f "dice-mac.zip" ]] ;
  4. then
  5.   echo "Missing file dice-mac.zip."
  6.   echo "Copy the dice-mac.zip file to ${PWD} and re-run this script."
  7.   exit 1
  8. fi
  9.  
  10.  
  11. if [[ ! -f "lwjgl.zip" ]] ;
  12. then
  13.   wget https://github.com/LWJGL/lwjgl3/releases/download/3.3.1/lwjgl.zip
  14. fi
  15. mkdir -p lwjgl
  16. unzip -jnd ./lwjgl/ lwjgl.zip lwjgl/lwjgl-natives-linux.jar lwjgl-glfw/lwjgl-glfw-natives-linux.jar lwjgl-jemalloc/lwjgl-jemalloc-natives-linux.jar lwjgl-openal/lwjgl-openal-natives-linux.jar lwjgl-opengl/lwjgl-opengl-natives-linux.jar lwjgl-stb/lwjgl-stb-natives-linux.jar
  17. find lwjgl/ -exec unzip -nd ./modtemp {} \;
  18. rm -rf modtemp/META-INF/
  19.  
  20.  
  21. if [[ ! -f "natives.zip" ]] ;
  22. then
  23.   wget https://libgdx-nightlies.s3.eu-central-1.amazonaws.com/libgdx-nightlies/natives.zip
  24. fi
  25. unzip -jnd ./modtemp/ natives.zip extensions/gdx-bullet/libs/linux64/libgdx-bullet64.so gdx/libs/linux64/libgdx64.so -n -d ./modtemp/
  26.  
  27.  
  28. unzip -j dice-mac.zip SliceAndDice.app/Contents/Resources/dice.jar
  29. jar uvf dice.jar -C ./modtemp .
  30.  
  31.  
  32. cat << EOF > ./run.sh
  33. #/usr/bin/env bash
  34.  
  35. java -Dorg.lwjgl.util.Debug=true -Xmx1g -classpath "\${DICE_CLASS_PATH[*]}" com.tann.dice.desktop.DicetopLauncher
  36. EOF
  37.  
  38. chmod +x run-sh
  39.  
  40. echo "All done."
  41. echo "Launch the game by executing run.sh"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement