mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 11:45:07 +03:00
f02fd21719
closes #4557
27 lines
622 B
YAML
27 lines
622 B
YAML
distributable:
|
|
url: https://github.com/SagerNet/sing-box/archive/v{{version}}.tar.gz
|
|
strip-components: 1
|
|
display-name: sing-box
|
|
versions:
|
|
github: SagerNet/sing-box
|
|
build:
|
|
dependencies:
|
|
go.dev: ^1.20
|
|
script:
|
|
- go build $GO_ARGS -ldflags="$LDFLAGS" ./cmd/sing-box
|
|
env:
|
|
GO_ARGS:
|
|
- -trimpath
|
|
- -o="{{prefix}}/bin/sing-box"
|
|
LDFLAGS:
|
|
- -s
|
|
- -w
|
|
- -X github.com/sagernet/sing-box/constant.Version={{version}}
|
|
linux:
|
|
LDFLAGS:
|
|
- -buildmode=pie
|
|
provides:
|
|
- bin/sing-box
|
|
test:
|
|
- sing-box version | grep {{version}}
|
|
- sing-box check -c $PWD/config.json
|