mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-10 23:47:21 -08:00
update<build>: update build script
This commit is contained in:
parent
4e432df6e5
commit
c25ea618d0
1 changed files with 11 additions and 8 deletions
19
build.bat
19
build.bat
|
@ -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 ../
|
Loading…
Reference in a new issue