oh-my-posh/src/.goreleaser.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

2021-10-06 12:43:18 -07:00
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
- go mod tidy
2022-08-26 12:51:47 -07:00
- go install github.com/tc-hib/go-winres@latest
- go-winres make --product-version=git-tag --file-version=git-tag --arch="amd64,386,arm64"
2021-10-06 12:43:18 -07:00
builds:
-
binary: "posh-{{ .Os }}-{{ .Arch }}"
no_unique_dist_dir: true
2021-11-30 11:03:58 -08:00
flags:
- -a
2021-10-06 12:43:18 -07:00
ldflags:
2022-01-19 04:29:37 -08:00
- -s -w -X main.Version={{.Version}} -extldflags "-static"
tags:
- netgo
- osusergo
- static_build
env:
- CGO_ENABLED=0
2021-10-06 12:43:18 -07:00
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- arm
- 386
ignore:
- goos: darwin
goarch: 386
- goos: linux
goarch: 386
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
2021-12-02 13:42:38 -08:00
hooks:
post:
- sh -c "cosign sign-blob --key $COSIGN_KEY_LOCATION {{ .Path }} > dist/{{ .Name }}.sig"
2021-10-06 12:43:18 -07:00
archives:
- id: oh-my-posh
format: binary
name_template: "posh-{{ .Os }}-{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
changelog:
skip: true