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"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View file

@ -4,7 +4,7 @@ cd /d "%~dp0"
rem build the mod rem build the mod
dotnet build dotnet build
rem zip the mod 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) for /F %%p in ('dir /b "*.dll"') do (set file=%%p)
set dest=%file:~0,-4%.zip set dest=%file:~0,-4%.zip
tar -acf ../%dest% --exclude ref --exclude *.pdb --exclude *.deps.json * tar -acf ../%dest% --exclude ref --exclude *.pdb --exclude *.deps.json *

View file

@ -4,7 +4,7 @@ cd "$(dirname "$0")"
# build the mod # build the mod
dotnet build dotnet build
# zip the mod # zip the mod
cd ./bin/Debug/net5.0 cd ./bin/Debug/net6.0
file=$(find *.dll -printf %f) file=$(find *.dll -printf %f)
dest=${file::-4}.zip dest=${file::-4}.zip
zip -FSr ../$dest * --exclude 'ref/*' --exclude '*.pdb' --exclude '*.deps.json' zip -FSr ../$dest * --exclude 'ref/*' --exclude '*.pdb' --exclude '*.deps.json'

View file

@ -4,7 +4,7 @@ cd /d "%~dp0"
rem build the mod rem build the mod
dotnet build dotnet build
rem copy the mod to the mods folder 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 rem run the game
set /p dir=<"%LOCALAPPDATA%/Tiny Life/GameDir" set /p dir=<"%LOCALAPPDATA%/Tiny Life/GameDir"
cd /d %dir% cd /d %dir%

2
Run.sh
View file

@ -4,7 +4,7 @@ cd "$(dirname "$0")"
# build the mod # build the mod
dotnet build dotnet build
# copy the mod to the mods folder # 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 # run the game
dir=$(<"$HOME/.local/share/Tiny Life/GameDir") dir=$(<"$HOME/.local/share/Tiny Life/GameDir")
cd $dir cd $dir