mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-12-22 23:39:23 +01:00
exit scripts if the build fails
This commit is contained in:
parent
2f19a03d30
commit
a40d08209b
4 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
rem move to the script directory
|
||||
cd /d "%~dp0"
|
||||
rem build the mod
|
||||
dotnet build
|
||||
dotnet build || exit /b
|
||||
rem zip the mod
|
||||
cd ./bin/Debug/net6.0
|
||||
for /F %%p in ('dir /b "*.dll"') do (set file=%%p)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# move to the script directory
|
||||
cd "$(dirname "$0")"
|
||||
# build the mod
|
||||
dotnet build
|
||||
dotnet build || exit
|
||||
# zip the mod
|
||||
cd ./bin/Debug/net6.0
|
||||
file=$(find *.dll -print)
|
||||
|
|
2
Run.bat
2
Run.bat
|
@ -2,7 +2,7 @@
|
|||
rem move to the script directory
|
||||
cd /d "%~dp0"
|
||||
rem build the mod
|
||||
dotnet build
|
||||
dotnet build || exit /b
|
||||
rem copy the mod to the mods folder
|
||||
robocopy ./bin/Debug/net6.0/ "%LOCALAPPDATA%/Tiny Life/Mods" /e /is
|
||||
rem run the game
|
||||
|
|
2
Run.sh
2
Run.sh
|
@ -2,7 +2,7 @@
|
|||
# move to the script directory
|
||||
cd "$(dirname "$0")"
|
||||
# build the mod
|
||||
dotnet build
|
||||
dotnet build || exit
|
||||
# copy the mod to the mods folder
|
||||
cp -r ./bin/Debug/net6.0/* "$HOME/.local/share/Tiny Life/Mods"
|
||||
# run the game
|
||||
|
|
Loading…
Reference in a new issue