mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 04:30:05 +00:00
🚸 大幅缩减 agent 二进制体积
This commit is contained in:
@@ -3,6 +3,8 @@ before:
|
||||
- go mod tidy -v
|
||||
builds:
|
||||
- id: nezha-agent
|
||||
ldflags:
|
||||
- -s -w
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
@@ -25,6 +27,10 @@ builds:
|
||||
goarch: arm64
|
||||
main: ./cmd/agent
|
||||
binary: nezha-agent
|
||||
hooks:
|
||||
post:
|
||||
# 为路由器、开发板缩小二进制体积
|
||||
- npx --best "{{.Path}}"
|
||||
checksum:
|
||||
name_template: "checksums.txt"
|
||||
snapshot:
|
||||
|
||||
Reference in New Issue
Block a user