TinyLifeExampleMod/Run.sh

11 lines
273 B
Bash
Raw 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-04-22 20:01:01 +02:00
cp ./bin/Debug/net5.0/* "$HOME/.local/share/Tiny Life/Mods" -r
2020-11-25 00:57:25 +01:00
# run the game
2021-04-22 20:01:01 +02:00
dir=$(<"$HOME/.local/share/Tiny Life/GameDir")
2021-02-17 18:25:45 +01:00
cd $dir
2021-04-22 20:01:01 +02:00
"./Tiny Life"