mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
42 lines
No EOL
1.3 KiB
Batchfile
42 lines
No EOL
1.3 KiB
Batchfile
@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 net5.0-windows -p:PublishSingleFile=true --no-self-contained -o ..\publish
|
|
cd ..\publish
|
|
ren SourceGit.exe SourceGit.net5.0.x86.exe
|
|
|
|
cd ..\src
|
|
rmdir /s /q bin
|
|
rmdir /s /q obj
|
|
dotnet publish SourceGit.csproj --nologo -c Release -r win-x64 -f net5.0-windows -p:PublishSingleFile=true --no-self-contained -o ..\publish
|
|
cd ..\publish
|
|
ren SourceGit.exe SourceGit.net5.0.x64.exe
|
|
|
|
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 ../ |