From ece4f41bbf516f68ca44b2083af7c216b7783d02 Mon Sep 17 00:00:00 2001 From: mogumc Date: Thu, 23 Jul 2026 15:16:10 +0800 Subject: [PATCH] =?UTF-8?q?build(ci):=20=E6=B7=BB=E5=8A=A0=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E4=BC=98=E5=8C=96=E5=8F=82=E6=95=B0=E5=87=8F=E5=B0=8F?= =?UTF-8?q?=E4=BA=A7=E7=89=A9=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 778515a..802c6bd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -45,7 +45,8 @@ jobs: run: | wails build ` -platform windows/amd64 ` - -ldflags "-X webhelper/global.Version=${{ steps.version.outputs.version }}" ` + -trimpath ` + -ldflags "-s -w -X webhelper/global.Version=${{ steps.version.outputs.version }}" ` -o webhelper-windows-amd64.exe - name: Upload artifact @@ -102,7 +103,8 @@ jobs: run: | wails build \ -platform linux/amd64 \ - -ldflags "-X webhelper/global.Version=${{ steps.version.outputs.version }}" \ + -trimpath \ + -ldflags "-s -w -X webhelper/global.Version=${{ steps.version.outputs.version }}" \ -o webhelper-linux-amd64 - name: Upload artifact @@ -160,7 +162,8 @@ jobs: wails build \ -platform linux/amd64 \ -tags webkit2_41 \ - -ldflags "-X webhelper/global.Version=${{ steps.version.outputs.version }}" \ + -trimpath \ + -ldflags "-s -w -X webhelper/global.Version=${{ steps.version.outputs.version }}" \ -o webhelper-linux-amd64-webkit2_41 - name: Upload artifact @@ -207,7 +210,8 @@ jobs: run: | wails build \ -platform darwin/amd64 \ - -ldflags "-X webhelper/global.Version=${{ steps.version.outputs.version }}" \ + -trimpath \ + -ldflags "-s -w -X webhelper/global.Version=${{ steps.version.outputs.version }}" \ -o webhelper-darwin-amd64 - name: Package amd64 @@ -224,7 +228,8 @@ jobs: run: | wails build \ -platform darwin/arm64 \ - -ldflags "-X webhelper/global.Version=${{ steps.version.outputs.version }}" \ + -trimpath \ + -ldflags "-s -w -X webhelper/global.Version=${{ steps.version.outputs.version }}" \ -o webhelper-darwin-arm64 - name: Package arm64