Skip to content

Commit

Permalink
Update tinybunny_unix.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
darealshinji authored Jan 9, 2021
1 parent 50ecfdc commit 753427a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Tiny Bunny/tinybunny_unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,19 @@
set -e
set -x

gamedir="Tiny Bunny"
sdkver="7.3.5"

mkdir -p "Tiny Bunny/lib"
cd "Tiny Bunny"
if [ "$(printf "$PWD" | tail -c28)" = "/steamapps/common/Tiny Bunny" ]; then
gamedir="."
fi

if [ -f "$gamedir/game/script_version.txt" ]; then
sdkver=$(sed 's|,|.|'g "$gamedir/game/script_version.txt" | tr -d -c '0-9.')
fi

mkdir -p "$gamedir/lib"
cd "$gamedir"

#wget https://www.renpy.org/dl/$sdkver/renpy-${sdkver}-sdk.tar.bz2
wget https://archive.org/download/renpy-${sdkver}-sdk/renpy-${sdkver}-sdk.tar.bz2
Expand All @@ -30,5 +39,3 @@ wget -O lib/darwin-x86_64/libsteam_api.dylib https://github.com/darealshinji/Ste
# delete
rm renpy-${sdkver}-sdk.tar.bz2
rm -rf renpy-${sdkver}-sdk


0 comments on commit 753427a

Please sign in to comment.