update<build>: rename output binary name

This commit is contained in:
leo 2021-08-12 13:06:33 +08:00
parent fc4667f26c
commit 65ac3dd67a
2 changed files with 4 additions and 4 deletions

View file

@ -26,8 +26,8 @@
| 文件 | 运行时 | 说明 | | 文件 | 运行时 | 说明 |
| ---------------- | ------------------ | ----------------------------------- | | ---------------- | ------------------ | ----------------------------------- |
| SourceGit.exe | .NET 5 | 需要自行安装 .NET 5运行时 | | SourceGit.net5.0.exe | .NET 5 | 需要自行安装 .NET 5运行时 |
| SourceGit_48.exe | .NET Framework 4.8 | Windows 10 内置该运行时,不需要安装 | | SourceGit.net4.8.exe | .NET Framework 4.8 | Windows 10 内置该运行时,不需要安装 |
> 【注】本软件为GIT的**图形前端**需先自行安装Git > 【注】本软件为GIT的**图形前端**需先自行安装Git

View file

@ -8,7 +8,7 @@ rmdir /s /q obj
dotnet publish SourceGit.csproj --nologo -c Release -r win-x86 -f net48 -o ..\publish\net48 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 ilrepack /ndebug /wildcards /out:..\publish\SourceGit.exe ..\publish\net48\SourceGit.exe ..\publish\net48\*.dll
cd ..\publish cd ..\publish
ren SourceGit.exe SourceGit.net48.exe ren SourceGit.exe SourceGit.net4.8.exe
rmdir /s /q net48 rmdir /s /q net48
cd ..\src cd ..\src
@ -16,6 +16,6 @@ rmdir /s /q bin
rmdir /s /q obj 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 dotnet publish SourceGit.csproj --nologo -c Release -r win-x86 -f net5.0-windows -p:PublishSingleFile=true --no-self-contained -o ..\publish
cd ..\publish cd ..\publish
ren SourceGit.exe SourceGit.net50.exe ren SourceGit.exe SourceGit.net5.0.exe
cd ../ cd ../