Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- write_red_bold () {
- printf "\\033[00;31m\\033[1m%s\\033[0m\\n" "$1"
- }
- write_bold () {
- printf "\\033[1m%b\\033[0m\\n" "$1"
- }
- print_step () {
- printf "\\n\\033[31m\\033[1m##### OVERALL INSTALLATION STEP %s #####\\033[0m\\n" "$1"
- }
- wineserver -w --debug=0 # Wait for process to finish before continuing
- winetricks -q directplay directmusic dsound d3dx9_43 macdriver=x11 ddr=opengl win10 devenum dmsynth quartz
- sleep 5 # Let Wine finish spewing logs
- print_step 9
- write_bold "Adding game start script"
- wget -qcO "$HOME/pkmn_insurg/Run-Pokémon-Insurgence.command" "https://gitlab.com/levi506/installing-insurgnece/raw/master/assets/macOS/run.sh"
- chmod +x "$HOME/pkmn_insurg/Run-Pokémon-Insurgence.command"
- ln -s "$HOME/pkmn_insurg/Run-Pokémon-Insurgence.command" "$HOME/Desktop/Run-Pokémon-Insurgence.command"
- print_step 10
- write_bold "Clearing caches"
- rm -rf ~/.cache/wine ~/.cache/winetricks
- rm -rf $(brew --cache)
- print_step 11
- write_bold "Installing Insurg"
- wget -c "https://p-insurgence.com/releases/1.2.7/Pokemon Insurgence 1.2.7 Core.zip"
- unzip "Pokemon Insurgence 1.2.7 Core.zip" -d "$HOME/pkmn_insurg/drive_c/Program Files (x86)/"
- 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"
- mv -f "Pokemon Insurgence 1.2.7 Core.zip" "$HOME/pkmn_insurg/drive_c/Program Files (x86)/"
- write_bold "Installing Insurgence. This might take some time while it's downloading the game. Please be patient."
- echo "1.2.7" > "$HOME/pkmn_insurg/version"
- write_bold "Done!"
- 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"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement