mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
Add quic free version to goreleaser
This commit is contained in:
committed by
Cuong Manh Le
parent
ccf07a7d1c
commit
5b362412be
40
.goreleaser-qf.yaml
Normal file
40
.goreleaser-qf.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
builds:
|
||||
- id: ctrld
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -s -w
|
||||
goos:
|
||||
- darwin
|
||||
- linux
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
tags:
|
||||
- qf
|
||||
main: ./cmd/ctrld
|
||||
hooks:
|
||||
post: /bin/sh ./scripts/upx.sh {{ .Path }}
|
||||
archives:
|
||||
- format_overrides:
|
||||
- goos: windows
|
||||
format: zip
|
||||
strip_parent_binary_folder: true
|
||||
wrap_in_directory: true
|
||||
files:
|
||||
- README.md
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
snapshot:
|
||||
name_template: "{{ incpatch .Version }}-next"
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
@@ -18,6 +18,10 @@ case "$binary" in
|
||||
echo >&2 "upx does not work with windows arm/arm64 binary yet"
|
||||
exit 0
|
||||
;;
|
||||
*_darwin_*)
|
||||
echo >&2 "upx claims to work with darwin binary, but testing show that it is broken"
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
upx -- "$binary"
|
||||
|
||||
Reference in New Issue
Block a user