From 347a0faa7aa5e55aba2298dc00acd0f202486460 Mon Sep 17 00:00:00 2001 From: spiritlhl <103393591+spiritLHLS@users.noreply.github.com> Date: Tue, 13 Jan 2026 19:42:41 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=B7=BB=E5=8A=A0UPX=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E5=8E=8B=E7=BC=A9=E5=87=8F=E5=B0=8F=E4=BA=A7=E7=89=A9?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .goreleaser.yaml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index bf32be8c..33a3019b 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -3,7 +3,6 @@ before: - go mod tidy -v - go clean -cache -# 添加并行构建限制以减少磁盘占用 project_name: goecs builds: @@ -36,6 +35,7 @@ builds: goarch: arm main: ./ binary: goecs + - id: darwin-amd64 env: - CGO_ENABLED=1 @@ -49,6 +49,7 @@ builds: - amd64 main: ./ binary: goecs + - id: darwin-arm64 env: - CGO_ENABLED=1 @@ -62,18 +63,23 @@ builds: - arm64 main: ./ binary: goecs + universal_binaries: - name_template: "goecs" replace: false + checksum: name_template: "checksums.txt" + snapshot: name_template: "goecs" + archives: - name_template: "goecs_{{ .Os }}_{{ .Arch }}" format: zip files: - none* + changelog: sort: asc filters: @@ -84,4 +90,18 @@ changelog: - Merge pull request - Merge branch - go mod tidy - - New translations \ No newline at end of file + - New translations + +upx: + - enabled: true + brute: true + goos: + - linux + - windows + goarch: + - amd64 + - 386 + - arm64 + - ppc64le + - s390x + - riscv64