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 dotnet build
# zip the mod # zip the mod
cd ./bin/Debug/net6.0 cd ./bin/Debug/net6.0
file=$(find *.dll -printf %f) file=$(find *.dll -print)
dest=${file::-4}.zip dest=${file%????}.zip
zip -FSr ../$dest * --exclude 'ref/*' --exclude '*.pdb' --exclude '*.deps.json' zip -FSr ../$dest * --exclude 'ref/*' --exclude '*.pdb' --exclude '*.deps.json'
echo Published to bin/Debug/$dest echo Published to bin/Debug/$dest

4
Run.sh
View file

@ -4,8 +4,8 @@ cd "$(dirname "$0")"
# build the mod # build the mod
dotnet build dotnet build
# copy the mod to the mods folder # 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 # run the game
dir=$(<"$HOME/.local/share/Tiny Life/GameDir") dir=$(<"$HOME/.local/share/Tiny Life/GameDir")
cd $dir cd "$dir"
"./Tiny Life" -v --skip-splash "./Tiny Life" -v --skip-splash