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
|
|
|
|
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:
|
2021-11-30 11:03:58 -08:00
|
|
|
- -s -w -X main.Version={{.Version}}
|
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
|
|
|
|
- goos: darwin
|
|
|
|
goarch: arm64
|
|
|
|
archives:
|
|
|
|
- id: oh-my-posh
|
|
|
|
format: binary
|
|
|
|
name_template: "posh-{{ .Os }}-{{ .Arch }}"
|
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
|
|
|
changelog:
|
|
|
|
skip: true
|