2023-03-25 22:15:30 +03:00
|
|
|
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
|
|
|
|
script: |
|
2024-01-24 21:43:09 +03:00
|
|
|
go build -ldflags="$GO_LDFLAGS" -o pocket ./app/cmd/pocket_core/main.go
|
2023-03-25 22:15:30 +03:00
|
|
|
mkdir -p "{{ prefix }}"/bin
|
|
|
|
mv pocket "{{ prefix }}"/bin
|
2024-01-24 21:43:09 +03:00
|
|
|
env:
|
|
|
|
linux:
|
|
|
|
GO_LDFLAGS:
|
|
|
|
- -buildmode=pie
|
2023-03-25 22:15:30 +03:00
|
|
|
|
|
|
|
test:
|
2024-01-24 21:43:09 +03:00
|
|
|
- pocket version
|
|
|
|
- pocket version | grep {{version}}
|