From 2f19a03d30d462deaf8dfa84fe55422762c092e1 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 8 Jan 2022 16:09:10 +0100 Subject: [PATCH] made run and publish scripts mac-compliant --- Publish.sh | 4 ++-- Run.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Publish.sh b/Publish.sh index 3bd3923..5ba17c8 100644 --- a/Publish.sh +++ b/Publish.sh @@ -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 \ No newline at end of file diff --git a/Run.sh b/Run.sh index 09e509a..b1858b5 100644 --- a/Run.sh +++ b/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 \ No newline at end of file