Skip to content

Commit da2fcd7

Browse files
committed
build: enable trimming and single file publish
1 parent 3c25ca1 commit da2fcd7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/linux/Packaging.Linux/layout.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ $DOTNET_ROOT/dotnet publish "$GCM_SRC" \
7474
--framework="$FRAMEWORK" \
7575
--runtime="$RUNTIME" \
7676
--self-contained \
77-
-p:PublishSingleFile=true \
7877
--output="$(make_absolute "$PAYLOAD")" || exit 1
7978

8079
# Collect symbols

src/osx/Installer.Mac/layout.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ SRC="$ROOT/src"
2121
OUT="$ROOT/out"
2222
INSTALLER_SRC="$SRC/osx/Installer.Mac"
2323
GCM_SRC="$SRC/shared/Git-Credential-Manager"
24-
GCM_UI_SRC="$SRC/shared/Git-Credential-Manager.UI.Avalonia"
2524

2625
# Build parameters
2726
FRAMEWORK=net8.0

src/shared/Git-Credential-Manager/Git-Credential-Manager.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
<IsTestProject>false</IsTestProject>
1111
<LangVersion>latest</LangVersion>
1212
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
13+
<PublishSingleFile>true</PublishSingleFile>
14+
<PublishTrimmed>true</PublishTrimmed>
15+
<InvariantGlobalization>true</InvariantGlobalization>
1316
</PropertyGroup>
1417

1518
<ItemGroup>

0 commit comments

Comments
 (0)