TinyLifeExampleMod/Run.sh

11 lines
267 B
Bash
Raw Permalink Normal View History

2020-11-25 00:57:25 +01:00
#!/bin/bash
2021-01-11 22:28:56 +01:00
# move to the script directory
cd "$(dirname "$0")"
2020-11-25 00:57:25 +01:00
# build the mod
dotnet build
# copy the mod to the mods folder
2021-02-18 19:12:01 +01:00
cp ./bin/Debug/net5.0/* "$LOCALAPPDATA/Tiny Life/Mods" -r
2020-11-25 00:57:25 +01:00
# run the game
2021-02-17 18:25:45 +01:00
dir=$(<"$LOCALAPPDATA/Tiny Life/GameDir")
cd $dir
2020-11-25 00:57:25 +01:00
"./Tiny Life.exe"