summarylogtreecommitdiffstats
path: root/trim-executables.diff
blob: b1b9ce81ec8add7ebe69d5430aeb4167d3590fbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff --git a/src/linux/Packaging.Linux/build.sh b/src/linux/Packaging.Linux/build.sh
index f1c7473..7904b91 100755
--- a/src/linux/Packaging.Linux/build.sh
+++ b/src/linux/Packaging.Linux/build.sh
@@ -98,6 +98,7 @@ dotnet publish "$GCM_SRC" \
 	--runtime="$RUNTIME" \
 	--self-contained=true \
 	-p:PublishSingleFile=true \
+	-p:PublishTrimmed=true \
 	--output="$(make_absolute "$PAYLOAD")" || exit 1
 
 echo "Publishing Bitbucket UI helper..."
@@ -107,6 +108,7 @@ dotnet publish "$BITBUCKET_UI_SRC" \
 	--runtime="$RUNTIME" \
 	--self-contained=true \
 	-p:PublishSingleFile=true \
+	-p:PublishTrimmed=true \
 	--output="$(make_absolute "$PAYLOAD")" || exit 1
 
 echo "Publishing GitHub UI helper..."
@@ -116,6 +118,7 @@ dotnet publish "$GITHUB_UI_SRC" \
 	--runtime="$RUNTIME" \
 	--self-contained=true \
 	-p:PublishSingleFile=true \
+	-p:PublishTrimmed=true \
 	--output="$(make_absolute "$PAYLOAD")" || exit 1
 
 # Collect symbols