mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-02 17:44:59 +00:00
refactor<build>: no longer provides .NET48 and .NET6 x86 targets.
This commit is contained in:
parent
171f1d1d0c
commit
1a1d0d9004
2 changed files with 10 additions and 32 deletions
37
build.bat
37
build.bat
|
@ -1,28 +1,9 @@
|
|||
@echo off
|
||||
|
||||
rmdir /s /q publish
|
||||
|
||||
cd src
|
||||
rmdir /s /q bin
|
||||
rmdir /s /q obj
|
||||
dotnet publish SourceGit.csproj --nologo -c Release -r win-x86 -f net48 -o ..\publish\net48
|
||||
ilrepack /ndebug /wildcards /out:..\publish\SourceGit.exe ..\publish\net48\SourceGit.exe ..\publish\net48\*.dll
|
||||
cd ..\publish
|
||||
ren SourceGit.exe SourceGit.net4.8.exe
|
||||
rmdir /s /q net48
|
||||
|
||||
cd ..\src
|
||||
rmdir /s /q bin
|
||||
rmdir /s /q obj
|
||||
dotnet publish SourceGit.csproj --nologo -c Release -r win-x86 -f net6.0-windows -p:PublishSingleFile=true --no-self-contained -o ..\publish
|
||||
cd ..\publish
|
||||
ren SourceGit.exe SourceGit.net6.0.x86.exe
|
||||
|
||||
cd ..\src
|
||||
rmdir /s /q bin
|
||||
rmdir /s /q obj
|
||||
dotnet publish SourceGit.csproj --nologo -c Release -r win-x64 -f net6.0-windows -p:PublishSingleFile=true --no-self-contained -o ..\publish
|
||||
cd ..\publish
|
||||
ren SourceGit.exe SourceGit.net6.0.x64.exe
|
||||
|
||||
cd ../
|
||||
@echo off
|
||||
|
||||
rmdir /s /q publish
|
||||
|
||||
cd src
|
||||
dotnet publish SourceGit.csproj --nologo -c Release -r win-x64 -f net6.0-windows -p:PublishSingleFile=true --no-self-contained -o ..\publish
|
||||
dotnet publish SourceGit.csproj --nologo -c Release -r win-x64 -f net6.0-windows --self-contained -o ..\publish\SourceGit
|
||||
|
||||
cd ..
|
Loading…
Add table
Add a link
Reference in a new issue