2021-10-06 12:43:18 -07:00
|
|
|
# Make sure to check the documentation at https://goreleaser.com
|
2023-12-15 03:33:42 -08:00
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
2024-06-05 18:01:29 -07:00
|
|
|
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
|
2024-07-09 00:52:49 -07:00
|
|
|
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'
|
2024-07-04 01:20:49 -07:00
|
|
|
signs:
|
2024-07-09 00:52:49 -07:00
|
|
|
- cmd: pwsh
|
|
|
|
args:
|
|
|
|
- "-c"
|
|
|
|
- "& '{{ .Env.OPENSSL }}' pkeyutl -sign -inkey '{{ .Env.SHA_SIGNING_KEY_LOCATION }}' -out '${artifact}.sig' -rawin -in '${artifact}'"
|
2024-07-04 01:20:49 -07:00
|
|
|
artifacts: checksum
|
2021-10-06 12:43:18 -07:00
|
|
|
changelog:
|
2024-06-05 18:01:29 -07:00
|
|
|
disable: true
|