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