mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-12-22 23:39:23 +01:00
made run and publish scripts mac-compliant
This commit is contained in:
parent
ce5eb6e03a
commit
2f19a03d30
2 changed files with 4 additions and 4 deletions
|
@ -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
4
Run.sh
|
@ -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
|
Loading…
Reference in a new issue