From b81cf63b6fdcdaa0c4e6d66dbb9e64be95a1a6e4 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 16 Dec 2020 09:23:28 +0800 Subject: [PATCH] update: using TrimMode=link for publish self-contained product --- build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index cd68828a..24b0c369 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1,6 +1,6 @@ cd src -dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --self-contained=true +dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true -p:PublishTrimmed=true -p:TrimMode=link -p:IncludeNativeLibrariesForSelfExtract=true --self-contained=true Compress-Archive -Update -Path ..\publish\SourceGit.exe -DestinationPath ..\publish\SourceGit.zip dotnet publish -c Release -r win-x64 -o ..\publish\ -p:PublishSingleFile=true --self-contained=false \ No newline at end of file