pantry/projects/pokt.network/package.yml

27 lines
604 B
YAML
Raw Permalink Normal View History

distributable:
url: https://github.com/pokt-network/pocket-core/archive/refs/tags/RC-{{version}}.tar.gz
strip-components: 1
versions:
github: pokt-network/pocket-core/tags
strip: /^RC-/
provides:
- bin/pocket
build:
dependencies:
go.dev: ^1.18
2024-03-06 03:03:55 +03:00
script:
- run: sed -i -e 's/AppVersion = ".*"$/AppVersion = "RC-{{version}}"/' app.go
working-directory: app
- go build -ldflags="$GO_LDFLAGS" -o '{{prefix}}'/bin/pocket ./app/cmd/pocket_core/main.go
2024-01-24 21:43:09 +03:00
env:
linux:
GO_LDFLAGS:
- -buildmode=pie
test:
2024-01-24 21:43:09 +03:00
- pocket version
- pocket version | grep {{version}}