这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ builds:
- -trimpath
ldflags:
- -s -w -a -extldflags "-static" -X main.Version={{.Tag}} -X main.Git={{.Commit}}
gcflags:
- all="-l"
env:
- CGO_ENABLED=0
# hooks: #disabling upx for linux temporarily
# post: upx "{{ .Path }}"

- id: apigeeclimac
main: ./main.go
binary: apigeecli
Expand All @@ -49,25 +50,24 @@ builds:
- -trimpath
ldflags:
- -s -w -a -extldflags "-static" -X main.Version={{.Tag}} -X main.Git={{.Commit}}
gcflags:
- all="-l"
env:
- CGO_ENABLED=0
# hooks: #disabling upx for mac temporarily
# post: upx "{{ .Path }}"
# Windows defender can have a false positive and think upx shrinked binaries are malware

- id: apigeecliwin
main: ./main.go
binary: apigeecli
goos:
- windows
goarch:
- amd64
ignore:
- goos: windows
goarch: arm64
flags:
- -trimpath
ldflags:
- -s -w -a -extldflags "-static" -X main.Version={{.Tag}} -X main.Git={{.Commit}}
- -s -w -a -extldflags "-static" -X main.Version={{.Tag}} -X main.Git={{.Commit}}
gcflags:
- all="-l"
env:
- CGO_ENABLED=0

Expand Down Expand Up @@ -104,10 +104,4 @@ signs:

release:
draft: true
prerelease: true

universal_binaries:
-
replace: false
ids:
- apigeeclimac
prerelease: true