update<Build>: using Power-Shell instead of cmd to run build script

This commit is contained in:
leo 2020-12-14 11:33:59 +08:00
parent 61fe751f13
commit 81d82630ba
4 changed files with 15 additions and 12 deletions

7
build.ps1 Normal file
View file

@ -0,0 +1,7 @@
cd src
dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained=true
Compress-Archive -Path ..\publish\SourceGit.exe -DestinationPath ..\publish\SourceGit.zip
del /f /s /q ..\publish\SourceGit.exe
dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true --self-contained=false