mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
1026fcda6a
commit
37b48548b1
1 changed files with 7 additions and 10 deletions
|
@ -9,21 +9,18 @@ versions:
|
|||
provides:
|
||||
- bin/pocket
|
||||
|
||||
dependencies:
|
||||
go.dev: ^1.18
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
go.dev: ^1.18
|
||||
script: |
|
||||
go build -o pocket ./app/cmd/pocket_core/main.go
|
||||
go build -ldflags="$GO_LDFLAGS" -o pocket ./app/cmd/pocket_core/main.go
|
||||
mkdir -p "{{ prefix }}"/bin
|
||||
mv pocket "{{ prefix }}"/bin
|
||||
env:
|
||||
linux:
|
||||
GO_LDFLAGS:
|
||||
- -buildmode=pie
|
||||
|
||||
test:
|
||||
script: |
|
||||
pocket --help >> /tmp/pocket.help
|
||||
if ! grep -q "Pocket is a distributed network that relays data" /tmp/pocket.help; then
|
||||
echo "Error: Pocket was not installed successfully"
|
||||
exit 1
|
||||
fi
|
||||
- pocket version
|
||||
- pocket version | grep {{version}}
|
||||
|
|
Loading…
Reference in a new issue