2023-10-16 23:55:02 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/99designs/aws-vault/archive/refs/tags/v{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: 99designs/aws-vault
|
|
|
|
strip: /^v/
|
|
|
|
|
|
|
|
build:
|
|
|
|
dependencies:
|
|
|
|
go.dev: ^1.20
|
2023-11-23 21:00:10 +03:00
|
|
|
script: go build -v -ldflags="$LDFLAGS" -o "{{ prefix }}"/bin/aws-vault ./main.go
|
2023-10-16 23:55:02 +03:00
|
|
|
env:
|
|
|
|
LDFLAGS:
|
|
|
|
- -w
|
|
|
|
- -s
|
|
|
|
- -X=main.Version=v{{version}}
|
2023-11-23 21:00:10 +03:00
|
|
|
linux:
|
|
|
|
CGO_ENABLED: 0
|
|
|
|
LDFLAGS:
|
|
|
|
- -extldflags=-static
|
|
|
|
darwin:
|
|
|
|
SDKROOT: $(xcrun --sdk macosx --show-sdk-path)
|
|
|
|
CGO_ENABLED: 1
|
2023-10-16 23:55:02 +03:00
|
|
|
|
|
|
|
provides:
|
|
|
|
- bin/aws-vault
|
|
|
|
|
|
|
|
test:
|
|
|
|
script: |
|
|
|
|
test "$(aws-vault --version 2>&1)" = v{{version}}
|