mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-26 05:28:34 +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
|
rem move to the script directory
|
||||||
cd /d "%~dp0"
|
cd /d "%~dp0"
|
||||||
rem build the mod
|
rem build the mod
|
||||||
dotnet build
|
dotnet build || exit /b
|
||||||
rem zip the mod
|
rem zip the mod
|
||||||
cd ./bin/Debug/net6.0
|
cd ./bin/Debug/net6.0
|
||||||
for /F %%p in ('dir /b "*.dll"') do (set file=%%p)
|
for /F %%p in ('dir /b "*.dll"') do (set file=%%p)
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# move to the script directory
|
# move to the script directory
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
# build the mod
|
# build the mod
|
||||||
dotnet build
|
dotnet build || exit
|
||||||
# zip the mod
|
# zip the mod
|
||||||
cd ./bin/Debug/net6.0
|
cd ./bin/Debug/net6.0
|
||||||
file=$(find *.dll -print)
|
file=$(find *.dll -print)
|
||||||
|
|
2
Run.bat
2
Run.bat
|
@ -2,7 +2,7 @@
|
||||||
rem move to the script directory
|
rem move to the script directory
|
||||||
cd /d "%~dp0"
|
cd /d "%~dp0"
|
||||||
rem build the mod
|
rem build the mod
|
||||||
dotnet build
|
dotnet build || exit /b
|
||||||
rem copy the mod to the mods folder
|
rem copy the mod to the mods folder
|
||||||
robocopy ./bin/Debug/net6.0/ "%LOCALAPPDATA%/Tiny Life/Mods" /e /is
|
robocopy ./bin/Debug/net6.0/ "%LOCALAPPDATA%/Tiny Life/Mods" /e /is
|
||||||
rem run the game
|
rem run the game
|
||||||
|
|
2
Run.sh
2
Run.sh
|
@ -2,7 +2,7 @@
|
||||||
# move to the script directory
|
# move to the script directory
|
||||||
cd "$(dirname "$0")"
|
cd "$(dirname "$0")"
|
||||||
# build the mod
|
# build the mod
|
||||||
dotnet build
|
dotnet build || exit
|
||||||
# copy the mod to the mods folder
|
# copy the mod to the mods folder
|
||||||
cp -r ./bin/Debug/net6.0/* "$HOME/.local/share/Tiny Life/Mods"
|
cp -r ./bin/Debug/net6.0/* "$HOME/.local/share/Tiny Life/Mods"
|
||||||
# run the game
|
# run the game
|
||||||
|
|
Loading…
Reference in a new issue