Skip to content

Instantly share code, notes, and snippets.

@TheBlackParrot
Last active December 21, 2020 21:47
Show Gist options
  • Save TheBlackParrot/280b9f86dcc41085f9213b9ef75dcf55 to your computer and use it in GitHub Desktop.
Save TheBlackParrot/280b9f86dcc41085f9213b9ef75dcf55 to your computer and use it in GitHub Desktop.
Brickadia Proton scripts
#!/bin/sh
# THIS REQUIRES SOME EDITING RIGHT NOW, SORRY!
# Wine prefix directory
WINDOWS_FOLDER=$HOME/Games/Brickadia
# URL to Launcher
LAUNCHER_DOWNLOAD_URL="https://static.brickadia.com/launcher/1.4/BrickadiaInstaller.exe"
# Directory containing proton
# vvvv CUSTOM PROTON FORKS vvvv
# PROTON_DIR=$HOME/.steam/steam/compatibilitytools.d/Proton-5.9-GE-8-ST
# vvvv REGULAR PROTON vvvv
PROTON_DIR="$HOME/.local/share/Steam/steamapps/common/Proton 4.11"
# Download the launcher
echo "Downloading the launcher installer..."
mkdir -p $WINDOWS_FOLDER
cd "$WINDOWS_FOLDER"
if [ ! -f $(pwd)/BrickadiaInstaller.exe ]; then
curl -o BrickadiaInstaller.exe $LAUNCHER_DOWNLOAD_URL
fi
echo "INSTALLER MAY FAIL INSTALLING VC2010. Just ctrl-c the script/cancel installation and re-run the script."
sleep 3s
# Proton needs this
export STEAM_COMPAT_DATA_PATH=$WINDOWS_FOLDER
# Run the installer
DIR=$(pwd)
cd "$PROTON_DIR"
./proton run "$DIR/BrickadiaInstaller.exe"
# Kill the running wine server and install vcredist2010
echo "Manually re-installing the VC2010 redistributable package..."
sleep 1s
wineserver -k
WINEPREFIX=$WINDOWS_FOLDER/pfx winetricks vcrun2010
echo "Done! Use ./run.sh to run the game."
#!/bin/sh
# THIS REQUIRES SOME EDITING RIGHT NOW, SORRY!
# Directory containing the Brickadia Launcher
DIR=$(pwd)/pfx/drive_c/Program\ Files/Brickadia/BrickadiaLauncher
# Proton needs this
export STEAM_COMPAT_DATA_PATH=$HOME/Games/Brickadia
# Directory containing proton
# vvvv CUSTOM PROTON FORKS vvvv
# PROTON_DIR=$HOME/.steam/steam/compatibilitytools.d/Proton-5.9-GE-8-ST
# vvvv REGULAR PROTON vvvv
PROTON_DIR="$HOME/.local/share/Steam/steamapps/common/Proton 4.11"
cd "$PROTON_DIR"
./proton run "$DIR/BrickadiaLauncher.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment