update<build>: update build script

This commit is contained in:
leo 2021-04-30 12:02:21 +08:00
parent 4e432df6e5
commit c25ea618d0

View file

@ -1,16 +1,19 @@
@echo off
rmdir /s /q publish rmdir /s /q publish
cd src cd src
rmdir /s /q bin rmdir /s /q bin
rmdir /s /q obj rmdir /s /q obj
dotnet publish SourceGit.csproj --nologo -c Release -r win-x64 -p:PublishSingleFile=true --no-self-contained -o ../publish dotnet publish SourceGit_48.csproj --nologo -c Release -r win-x64 -o ..\publish\net48
ilrepack /ndebug /out:..\publish\SourceGit.exe ..\publish\net48\SourceGit.exe ..\publish\net48\Newtonsoft.Json.dll
rmdir /s /q bin cd ..\publish
rmdir /s /q obj ren SourceGit.exe SourceGit_48.exe
dotnet publish SourceGit_48.csproj --nologo -c Release -r win-x64 -o ../publish/net48
cd ../publish
ilrepack /ndebug /out:SourceGit_48.exe net48/SourceGit.exe net48/Newtonsoft.Json.dll
rmdir /s /q net48 rmdir /s /q net48
cd ..\src
rmdir /s /q bin
rmdir /s /q obj
dotnet publish SourceGit.csproj --nologo -c Release -r win-x64 -p:PublishSingleFile=true --no-self-contained -o ..\publish
cd ../ cd ../