mirror of
https://github.com/Ellpeck/TinyLifeExampleMod.git
synced 2024-11-22 12:03:28 +01:00
about time for .net 6
This commit is contained in:
parent
f293c56d72
commit
381599b278
5 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
@ -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 *
|
||||
|
|
|
@ -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'
|
||||
|
|
2
Run.bat
2
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%
|
||||
|
|
2
Run.sh
2
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
|
||||
|
|
Loading…
Reference in a new issue