Last active 1 week ago

Updates game folder with steamcmd, with locking

jackz's Avatar jackz revised this gist 1 week ago. Go to revision

1 file changed, 1 insertion, 1 deletion

update.sh

@@ -1,6 +1,6 @@
1 1 #!/bin/bash
2 2 APPID=222860
3 - STEAMCMD_PATH=~/steamcmd
3 + STEAMCMD_PATH=~/steamcmd/steamcmd.sh
4 4 if test -f "update.lock"; then
5 5 echo "update.lock found, cancelling"
6 6 exit 1

jackz's Avatar jackz revised this gist 1 week ago. Go to revision

1 file changed, 5 insertions, 1 deletion

update.sh

@@ -1,10 +1,14 @@
1 1 #!/bin/bash
2 2 APPID=222860
3 + STEAMCMD_PATH=~/steamcmd
3 4 if test -f "update.lock"; then
4 5 echo "update.lock found, cancelling"
5 6 exit 1
6 7 fi
7 8 touch update.lock
8 9 trap '{ rm -f -- "update.lock"; }' EXIT
9 - /home/steam/steamcmd/steamcmd.sh +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit
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
10 14 rm update.lock

jackz's Avatar jackz revised this gist 1 week ago. Go to revision

1 file changed, 10 insertions

update.sh(file created)

@@ -0,0 +1,10 @@
1 + #!/bin/bash
2 + APPID=222860
3 + if test -f "update.lock"; then
4 + echo "update.lock found, cancelling"
5 + exit 1
6 + fi
7 + touch update.lock
8 + trap '{ rm -f -- "update.lock"; }' EXIT
9 + /home/steam/steamcmd/steamcmd.sh +force_install_dir $PWD +login anonymous +app_update $APPID validate +quit
10 + rm update.lock
Newer Older