mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
update<Build>: add self-contained package
This commit is contained in:
parent
f4ab97c088
commit
285524256b
2 changed files with 8 additions and 5 deletions
|
@ -2,14 +2,13 @@
|
|||
|
||||
开源的Git客户端,仅用于Windows。
|
||||
|
||||
## 注意
|
||||
|
||||
**3.x 依赖 .NET 5,请先安装之**
|
||||
|
||||
## 下载
|
||||
|
||||
[发行版](https://gitee.com/sourcegit/SourceGit/releases/)
|
||||
|
||||
* `SourceGit.exe`为不带.NET 5.0运行时的可执行文件,需要先安装.NET 5
|
||||
* `SourceGit.zip`为自带.NET 5.0的可执行文件
|
||||
|
||||
## 预览
|
||||
|
||||
* DarkTheme
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
cd src
|
||||
rmdir /s /q bin
|
||||
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 ..
|
Loading…
Reference in a new issue