From 381599b278bfc5b7b43f610f51304e1348fa6de9 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Wed, 8 Dec 2021 23:34:22 +0100 Subject: [PATCH] about time for .net 6 --- ExampleMod.csproj | 2 +- Publish.bat | 2 +- Publish.sh | 2 +- Run.bat | 2 +- Run.sh | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ExampleMod.csproj b/ExampleMod.csproj index af67bd0..022bc34 100644 --- a/ExampleMod.csproj +++ b/ExampleMod.csproj @@ -1,7 +1,7 @@ - net5.0 + net6.0 diff --git a/Publish.bat b/Publish.bat index 529cfeb..ca137c7 100644 --- a/Publish.bat +++ b/Publish.bat @@ -4,7 +4,7 @@ cd /d "%~dp0" rem build the mod dotnet build rem zip the mod -cd ./bin/Debug/net5.0 +cd ./bin/Debug/net6.0 for /F %%p in ('dir /b "*.dll"') do (set file=%%p) set dest=%file:~0,-4%.zip tar -acf ../%dest% --exclude ref --exclude *.pdb --exclude *.deps.json * diff --git a/Publish.sh b/Publish.sh index 432b89b..3bd3923 100644 --- a/Publish.sh +++ b/Publish.sh @@ -4,7 +4,7 @@ cd "$(dirname "$0")" # build the mod dotnet build # zip the mod -cd ./bin/Debug/net5.0 +cd ./bin/Debug/net6.0 file=$(find *.dll -printf %f) dest=${file::-4}.zip zip -FSr ../$dest * --exclude 'ref/*' --exclude '*.pdb' --exclude '*.deps.json' diff --git a/Run.bat b/Run.bat index 9bf39c6..5413619 100644 --- a/Run.bat +++ b/Run.bat @@ -4,7 +4,7 @@ cd /d "%~dp0" rem build the mod dotnet build rem copy the mod to the mods folder -robocopy ./bin/Debug/net5.0/ "%LOCALAPPDATA%/Tiny Life/Mods" /e /is +robocopy ./bin/Debug/net6.0/ "%LOCALAPPDATA%/Tiny Life/Mods" /e /is rem run the game set /p dir=<"%LOCALAPPDATA%/Tiny Life/GameDir" cd /d %dir% diff --git a/Run.sh b/Run.sh index 4169f0a..b0bf89b 100644 --- a/Run.sh +++ b/Run.sh @@ -4,7 +4,7 @@ cd "$(dirname "$0")" # build the mod dotnet build # copy the mod to the mods folder -cp ./bin/Debug/net5.0/* "$HOME/.local/share/Tiny Life/Mods" -r +cp ./bin/Debug/net6.0/* "$HOME/.local/share/Tiny Life/Mods" -r # run the game dir=$(<"$HOME/.local/share/Tiny Life/GameDir") cd $dir