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

57 lines
1.6 KiB
YAML
Raw Normal View History

2021-10-06 12:43:18 -07:00
# Make sure to check the documentation at https://goreleaser.com
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
2021-10-06 12:43:18 -07:00
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:
2023-07-02 11:53:50 -07:00
- -s -w -X github.com/jandedobbeleer/oh-my-posh/src/build.Version={{ .Version }} -X github.com/jandedobbeleer/oh-my-posh/src/build.Date={{ .Date }} -extldflags "-static"
2022-01-19 04:29:37 -08:00
tags:
- netgo
- osusergo
- static_build
env:
- CGO_ENABLED=0
2021-10-06 12:43:18 -07:00
goos:
- linux
- windows
- darwin
2024-01-05 23:41:13 -08:00
- freebsd
2021-10-06 12:43:18 -07:00
goarch:
- amd64
- arm64
- arm
2023-07-02 11:53:50 -07:00
- "386"
2021-10-06 12:43:18 -07:00
ignore:
- goos: darwin
2023-07-02 11:53:50 -07:00
goarch: "386"
2021-10-06 12:43:18 -07:00
- goos: darwin
goarch: arm
- goos: windows
goarch: arm
hooks:
post:
- pwsh -c "if ('{{ .Path }}'.EndsWith('.exe')) { & '{{ .Env.SIGNTOOL }}' sign /f '{{ .Env.SIGNING_CERTIFICATE_LOCATION }}' /p '{{ .Env.SIGNING_CERTIFICATE_PASSWORD }}' /fd SHA256 /t http://timestamp.digicert.com '{{ .Path }}' }"
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'
signs:
- cmd: pwsh
args:
- "-c"
- "& '{{ .Env.OPENSSL }}' pkeyutl -sign -inkey '{{ .Env.SHA_SIGNING_KEY_LOCATION }}' -out '${artifact}.sig' -rawin -in '${artifact}'"
artifacts: checksum
2021-10-06 12:43:18 -07:00
changelog:
disable: true