From 1c007024398e73cd87298ffd78a6831f06400f86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C4=B5=20=CE=9D=CE=B9=CE=93=CE=9E=CE=97=CE=9B=CF=88=CE=9A?= Date: Thu, 4 Jul 2024 22:53:06 +0530 Subject: [PATCH] enable trimming --- .github/workflows/create-release.yaml | 2 +- src/Server/Properties/PublishProfiles/FolderProfile.pubxml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 044f463..9ecd347 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -31,7 +31,7 @@ jobs: - name: Publish Binaries working-directory: src/Server run: | - dotnet publish ./InverterMon.Server.csproj -c Release -r ${{ matrix.rid }} --self-contained -p:PublishTrimmed=false -o ./bin/${{ matrix.rid }} + dotnet publish ./InverterMon.Server.csproj -c Release -r ${{ matrix.rid }} --self-contained -p:PublishTrimmed=true -o ./bin/${{ matrix.rid }} rm -rf ./bin/${{ matrix.rid }}/BlazorDebugProxy cd ./bin/${{ matrix.rid }} zip -r -9 ../${{ matrix.rid }}.zip ./* diff --git a/src/Server/Properties/PublishProfiles/FolderProfile.pubxml b/src/Server/Properties/PublishProfiles/FolderProfile.pubxml index e7d58ef..a0fb0cf 100644 --- a/src/Server/Properties/PublishProfiles/FolderProfile.pubxml +++ b/src/Server/Properties/PublishProfiles/FolderProfile.pubxml @@ -15,6 +15,6 @@ b608f59f-4c72-43fd-820c-a0badf4591af true true - false + true \ No newline at end of file