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
|
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:
|
2024-06-05 18:01:29 -07:00
|
|
|
disable: true
|