Skip to content

Commit aa81caa

Browse files
committed
build: enable trimming and single file publish
1 parent 45b765f commit aa81caa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/linux/Packaging.Linux/layout.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,13 @@ if [ -z "$RUNTIME" ]; then
7777
--configuration="$CONFIGURATION" \
7878
--framework="$FRAMEWORK" \
7979
--self-contained \
80-
-p:PublishSingleFile=true \
8180
--output="$(make_absolute "$PAYLOAD")" || exit 1
8281
else
8382
$DOTNET_ROOT/dotnet publish "$GCM_SRC" \
8483
--configuration="$CONFIGURATION" \
8584
--framework="$FRAMEWORK" \
8685
--runtime="$RUNTIME" \
8786
--self-contained \
88-
-p:PublishSingleFile=true \
8987
--output="$(make_absolute "$PAYLOAD")" || exit 1
9088
fi
9189

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)