update.sh
· 693 B · Bash
Raw
#!/bin/bash
APPID=222860
STEAMCMD_PATH=~/steamcmd
if test -f "update.lock"; then
echo "update.lock found, cancelling"
exit 1
fi
touch update.lock
trap '{ rm -f -- "update.lock"; }' EXIT
# Due to some new steamcmd bugs, you cannot install the game except for windows. Valve doesn't seem like they will fix this
# So instead, we force it to download windows files, then we are able to download the linux version afterwards
"$STEAMCMD_PATH" +@sSteamCmdForcePlatformType windows +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit
"$STEAMCMD_PATH" +@sSteamCmdForcePlatformType linux +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit
rm update.lock
| 1 | #!/bin/bash |
| 2 | APPID=222860 |
| 3 | STEAMCMD_PATH=~/steamcmd |
| 4 | if test -f "update.lock"; then |
| 5 | echo "update.lock found, cancelling" |
| 6 | exit 1 |
| 7 | fi |
| 8 | touch update.lock |
| 9 | trap '{ rm -f -- "update.lock"; }' EXIT |
| 10 | # Due to some new steamcmd bugs, you cannot install the game except for windows. Valve doesn't seem like they will fix this |
| 11 | # So instead, we force it to download windows files, then we are able to download the linux version afterwards |
| 12 | "$STEAMCMD_PATH" +@sSteamCmdForcePlatformType windows +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit |
| 13 | "$STEAMCMD_PATH" +@sSteamCmdForcePlatformType linux +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit |
| 14 | rm update.lock |