55 lines
1.2 KiB
YAML
55 lines
1.2 KiB
YAML
version: 2
|
|
|
|
project_name: gogcli
|
|
|
|
changelog:
|
|
disable: true
|
|
|
|
builds:
|
|
- id: gog
|
|
main: ./cmd/gog
|
|
binary: gog
|
|
ldflags: >-
|
|
-s -w
|
|
-X github.com/steipete/gogcli/internal/cmd.version={{ .Tag }}
|
|
-X github.com/steipete/gogcli/internal/cmd.commit={{ .ShortCommit }}
|
|
-X github.com/steipete/gogcli/internal/cmd.date={{ .Date }}
|
|
env:
|
|
- CGO_ENABLED=0
|
|
targets:
|
|
- linux_amd64
|
|
- linux_arm64
|
|
- windows_amd64
|
|
- windows_arm64
|
|
- id: gog_darwin
|
|
main: ./cmd/gog
|
|
binary: gog
|
|
ldflags: >-
|
|
-s -w
|
|
-X github.com/steipete/gogcli/internal/cmd.version={{ .Tag }}
|
|
-X github.com/steipete/gogcli/internal/cmd.commit={{ .ShortCommit }}
|
|
-X github.com/steipete/gogcli/internal/cmd.date={{ .Date }}
|
|
env:
|
|
- CGO_ENABLED=1
|
|
targets:
|
|
- darwin_amd64
|
|
- darwin_arm64
|
|
hooks:
|
|
post:
|
|
- ./scripts/codesign-macos.sh "{{ .Path }}"
|
|
|
|
archives:
|
|
- ids:
|
|
- gog
|
|
- gog_darwin
|
|
formats:
|
|
- tar.gz
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
formats:
|
|
- zip
|
|
|
|
checksum:
|
|
name_template: checksums.txt
|