fix:添加UPX操作压缩减小产物大小

This commit is contained in:
spiritlhl
2026-01-13 19:42:41 +08:00
committed by GitHub
parent 74640e3066
commit 347a0faa7a
+22 -2
View File
@@ -3,7 +3,6 @@ before:
- go mod tidy -v - go mod tidy -v
- go clean -cache - go clean -cache
# 添加并行构建限制以减少磁盘占用
project_name: goecs project_name: goecs
builds: builds:
@@ -36,6 +35,7 @@ builds:
goarch: arm goarch: arm
main: ./ main: ./
binary: goecs binary: goecs
- id: darwin-amd64 - id: darwin-amd64
env: env:
- CGO_ENABLED=1 - CGO_ENABLED=1
@@ -49,6 +49,7 @@ builds:
- amd64 - amd64
main: ./ main: ./
binary: goecs binary: goecs
- id: darwin-arm64 - id: darwin-arm64
env: env:
- CGO_ENABLED=1 - CGO_ENABLED=1
@@ -62,18 +63,23 @@ builds:
- arm64 - arm64
main: ./ main: ./
binary: goecs binary: goecs
universal_binaries: universal_binaries:
- name_template: "goecs" - name_template: "goecs"
replace: false replace: false
checksum: checksum:
name_template: "checksums.txt" name_template: "checksums.txt"
snapshot: snapshot:
name_template: "goecs" name_template: "goecs"
archives: archives:
- name_template: "goecs_{{ .Os }}_{{ .Arch }}" - name_template: "goecs_{{ .Os }}_{{ .Arch }}"
format: zip format: zip
files: files:
- none* - none*
changelog: changelog:
sort: asc sort: asc
filters: filters:
@@ -84,4 +90,18 @@ changelog:
- Merge pull request - Merge pull request
- Merge branch - Merge branch
- go mod tidy - go mod tidy
- New translations - New translations
upx:
- enabled: true
brute: true
goos:
- linux
- windows
goarch:
- amd64
- 386
- arm64
- ppc64le
- s390x
- riscv64