From 285524256b87375a2c6aee7d94e53f8412783a5d Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 6 Apr 2021 09:48:35 +0800 Subject: [PATCH] update: add self-contained package --- README.md | 7 +++---- build.bat | 6 +++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6f4bbbe8..72c1500a 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/build.bat b/build.bat index 17f49131..58cc73d6 100644 --- a/build.bat +++ b/build.bat @@ -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 .. \ No newline at end of file