Advertisement
Deukhoofd

Untitled

Feb 24th, 2021 (edited)
880
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.78 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. write_red_bold () {
  4.     printf "\\033[00;31m\\033[1m%s\\033[0m\\n" "$1"
  5. }
  6.  
  7. write_bold () {
  8.     printf "\\033[1m%b\\033[0m\\n" "$1"
  9. }
  10.  
  11. print_step () {
  12.     printf "\\n\\033[31m\\033[1m##### OVERALL INSTALLATION STEP %s #####\\033[0m\\n" "$1"
  13. }
  14.  
  15. wineserver -w --debug=0  # Wait for process to finish before continuing
  16. winetricks -q directplay directmusic dsound d3dx9_43 macdriver=x11 ddr=opengl win10 devenum dmsynth quartz
  17. sleep 5  # Let Wine finish spewing logs
  18.  
  19. print_step 9
  20. write_bold "Adding game start script"
  21. wget -qcO "$HOME/pkmn_insurg/Run-Pokémon-Insurgence.command" "https://gitlab.com/levi506/installing-insurgnece/raw/master/assets/macOS/run.sh"
  22. chmod +x "$HOME/pkmn_insurg/Run-Pokémon-Insurgence.command"
  23. ln -s "$HOME/pkmn_insurg/Run-Pokémon-Insurgence.command" "$HOME/Desktop/Run-Pokémon-Insurgence.command"
  24.  
  25. print_step 10
  26. write_bold "Clearing caches"
  27. rm -rf ~/.cache/wine ~/.cache/winetricks
  28. rm -rf $(brew --cache)
  29.  
  30. print_step 11
  31. write_bold "Installing Insurg"
  32. wget -c "https://p-insurgence.com/releases/1.2.7/Pokemon Insurgence 1.2.7 Core.zip"
  33. unzip "Pokemon Insurgence 1.2.7 Core.zip" -d "$HOME/pkmn_insurg/drive_c/Program Files (x86)/"
  34. mv -f "$HOME/pkmn_insurg/drive_c/Program Files (x86)/Pokemon Insurgence 1.2.7 Core" "$HOME/pkmn_insurg/drive_c/Program Files (x86)/Pokemon Insurgence"
  35. mv -f "Pokemon Insurgence 1.2.7 Core.zip" "$HOME/pkmn_insurg/drive_c/Program Files (x86)/"
  36. write_bold "Installing Insurgence. This might take some time while it's downloading the game. Please be patient."
  37. echo "1.2.7" > "$HOME/pkmn_insurg/version"
  38.  
  39. write_bold "Done!"
  40. write_red_bold "Wait for all Wine configuration to finish (wait for any remaining windows to close), then REBOOT and check the guide on the Pokemon Insurgence Forums for next steps"
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement