update<Build>: add self-contained package

This commit is contained in:
leo 2021-04-06 09:48:35 +08:00
parent f4ab97c088
commit 285524256b
2 changed files with 8 additions and 5 deletions

View file

@ -2,14 +2,13 @@
开源的Git客户端仅用于Windows。 开源的Git客户端仅用于Windows。
## 注意
**3.x 依赖 .NET 5请先安装之**
## 下载 ## 下载
[发行版](https://gitee.com/sourcegit/SourceGit/releases/) [发行版](https://gitee.com/sourcegit/SourceGit/releases/)
* `SourceGit.exe`为不带.NET 5.0运行时的可执行文件,需要先安装.NET 5
* `SourceGit.zip`为自带.NET 5.0的可执行文件
## 预览 ## 预览
* DarkTheme * DarkTheme

View file

@ -1,5 +1,9 @@
cd src cd src
rmdir /s /q bin rmdir /s /q bin
rmdir /s /q obj rmdir /s /q obj
dotnet publish --nologo -c Release -r win-x64 -p:PublishSingleFile=true --no-self-contained -o publish dotnet publish --nologo -c Release -r win-x64 -p:PublishSingleFile=true --no-self-contained -o ../publish
rmdir /s /q bin
rmdir /s /q obj
dotnet publish --nologo -c Release -r win-x64 -p:PublishSingleFile=true -p:PublishReadyToRun=true -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishTrimmed=true -p:TrimMode=link --self-contained -o ../publish/SourceGit
cd .. cd ..