about time for .net 6

This commit is contained in:
Ell 2021-12-08 23:34:22 +01:00
parent f293c56d72
commit 381599b278
5 changed files with 5 additions and 5 deletions

View file

@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>

View file

@ -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 *

View file

@ -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'

View file

@ -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%

2
Run.sh
View file

@ -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