made run and publish scripts mac-compliant

This commit is contained in:
Ell 2022-01-08 16:09:10 +01:00
parent ce5eb6e03a
commit 2f19a03d30
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ cd "$(dirname "$0")"
dotnet build
# zip the mod
cd ./bin/Debug/net6.0
file=$(find *.dll -printf %f)
dest=${file::-4}.zip
file=$(find *.dll -print)
dest=${file%????}.zip
zip -FSr ../$dest * --exclude 'ref/*' --exclude '*.pdb' --exclude '*.deps.json'
echo Published to bin/Debug/$dest

4
Run.sh
View file

@ -4,8 +4,8 @@ cd "$(dirname "$0")"
# build the mod
dotnet build
# copy the mod to the mods folder
cp ./bin/Debug/net6.0/* "$HOME/.local/share/Tiny Life/Mods" -r
cp -r ./bin/Debug/net6.0/* "$HOME/.local/share/Tiny Life/Mods"
# run the game
dir=$(<"$HOME/.local/share/Tiny Life/GameDir")
cd $dir
cd "$dir"
"./Tiny Life" -v --skip-splash