Last active 1 week ago

Updates game folder with steamcmd, with locking

Revision 72bb5a96cd59f2c8449aa4818d8becdb75cca402

update.sh Raw
1#!/bin/bash
2APPID=222860
3STEAMCMD_PATH=~/steamcmd/steamcmd.sh
4if test -f "update.lock"; then
5 echo "update.lock found, cancelling"
6 exit 1
7fi
8touch update.lock
9trap '{ 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
14rm update.lock