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:
|
provides:
|
||||||
- bin/pocket
|
- bin/pocket
|
||||||
|
|
||||||
dependencies:
|
|
||||||
go.dev: ^1.18
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: ^1.18
|
go.dev: ^1.18
|
||||||
script: |
|
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
|
mkdir -p "{{ prefix }}"/bin
|
||||||
mv pocket "{{ prefix }}"/bin
|
mv pocket "{{ prefix }}"/bin
|
||||||
|
env:
|
||||||
|
linux:
|
||||||
|
GO_LDFLAGS:
|
||||||
|
- -buildmode=pie
|
||||||
|
|
||||||
test:
|
test:
|
||||||
script: |
|
- pocket version
|
||||||
pocket --help >> /tmp/pocket.help
|
- pocket version | grep {{version}}
|
||||||
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
|
|
||||||
|
|
Loading…
Reference in a new issue