2024-09-23 22:12:19 +08:00
version : 2
2022-08-12 22:53:46 +08:00
project_name : sing-box
builds :
2024-03-12 22:01:18 +08:00
- &template
id : main
2022-12-11 14:38:01 +08:00
main : ./cmd/sing-box
2022-08-12 22:53:46 +08:00
flags :
- -v
- -trimpath
ldflags :
2024-08-27 11:23:20 +08:00
- -X github.com/sagernet/sing-box/constant.Version={{ .Version }}
- -s
- -buildid=
2022-08-12 22:53:46 +08:00
tags :
2022-09-15 12:20:38 +08:00
- with_gvisor
2022-08-12 22:53:46 +08:00
- with_quic
2023-06-13 22:46:04 +08:00
- with_dhcp
2022-08-21 13:03:19 +08:00
- with_wireguard
2023-08-29 19:43:41 +08:00
- with_ech
2022-11-21 15:25:49 +08:00
- with_utls
2023-03-20 17:36:59 +08:00
- with_reality_server
2023-11-13 14:12:22 +08:00
- with_acme
2022-08-21 13:03:19 +08:00
- with_clash_api
2022-08-12 22:53:46 +08:00
env :
- CGO_ENABLED=0
targets :
2023-11-13 22:58:53 +08:00
- linux_386
2022-08-12 22:53:46 +08:00
- linux_amd64_v1
- linux_arm64
2024-09-15 12:12:25 +08:00
- linux_arm_6
2022-08-12 22:53:46 +08:00
- linux_arm_7
2022-10-26 19:29:27 +08:00
- linux_s390x
2024-01-24 05:27:13 +08:00
- linux_riscv64
2024-09-15 12:12:25 +08:00
- linux_mips64le
2022-08-12 22:53:46 +08:00
- windows_amd64_v1
- windows_386
- windows_arm64
- darwin_amd64_v1
- darwin_arm64
mod_timestamp : '{{ .CommitTimestamp }}'
2023-10-25 12:00:00 +08:00
- id : legacy
2024-03-12 22:01:18 +08:00
<< : *template
2023-10-25 12:00:00 +08:00
tags :
- with_gvisor
- with_quic
- with_dhcp
- with_wireguard
- with_utls
- with_reality_server
2023-11-13 14:12:22 +08:00
- with_acme
2023-10-25 12:00:00 +08:00
- with_clash_api
env :
- CGO_ENABLED=0
2024-03-19 13:02:56 +08:00
- GOROOT={{ .Env.GOPATH }}/go1.20.14
gobinary : "{{ .Env.GOPATH }}/go1.20.14/bin/go"
2023-10-25 12:00:00 +08:00
targets :
- windows_amd64_v1
- windows_386
- darwin_amd64_v1
2022-12-11 14:38:01 +08:00
- id : android
2024-03-12 22:01:18 +08:00
<< : *template
2022-12-11 14:38:01 +08:00
env :
- CGO_ENABLED=1
overrides :
- goos : android
goarch : arm
goarm : 7
env :
2024-02-26 22:49:48 +08:00
- CC=armv7a-linux-androideabi21-clang
- CXX=armv7a-linux-androideabi21-clang++
2022-12-11 14:38:01 +08:00
- goos : android
goarch : arm64
env :
- CC=aarch64-linux-android21-clang
- CXX=aarch64-linux-android21-clang++
- goos : android
goarch : 386
env :
2024-02-26 22:49:48 +08:00
- CC=i686-linux-android21-clang
- CXX=i686-linux-android21-clang++
2022-12-11 14:38:01 +08:00
- goos : android
goarch : amd64
goamd64 : v1
env :
- CC=x86_64-linux-android21-clang
- CXX=x86_64-linux-android21-clang++
targets :
- android_arm_7
- android_arm64
- android_386
- android_amd64
2022-08-12 22:53:46 +08:00
archives :
2024-03-12 22:01:18 +08:00
- &template
id : archive
2023-10-25 12:00:00 +08:00
builds :
- main
- android
2022-08-12 22:53:46 +08:00
format : tar.gz
format_overrides :
- goos : windows
format : zip
wrap_in_directory : true
files :
- LICENSE
2024-09-23 22:12:19 +08:00
name_template : '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ if and .Mips (not (eq .Mips "hardfloat")) }}_{{ .Mips }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
2023-10-25 12:00:00 +08:00
- id : archive-legacy
2024-03-12 22:01:18 +08:00
<< : *template
2023-10-25 12:00:00 +08:00
builds :
- legacy
name_template : '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}-legacy'
2022-08-12 22:53:46 +08:00
nfpms :
- id : package
package_name : sing-box
2024-09-23 22:12:19 +08:00
file_name_template : '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ if and .Mips (not (eq .Mips "hardfloat")) }}_{{ .Mips }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
2024-03-12 22:01:18 +08:00
builds :
- main
2022-08-12 22:53:46 +08:00
homepage : https://sing-box.sagernet.org/
maintainer : nekohasekai <contact-git@sekai.icu>
description : The universal proxy platform.
license : GPLv3 or later
formats :
- deb
- rpm
2023-11-13 15:24:13 +08:00
- archlinux
2024-09-23 22:12:19 +08:00
# - apk
# - ipk
2022-08-12 22:53:46 +08:00
priority : extra
contents :
- src : release/config/config.json
dst : /etc/sing-box/config.json
type : config
2024-09-23 22:12:19 +08:00
2022-08-12 22:53:46 +08:00
- src : release/config/sing-box.service
2024-03-19 12:01:28 +08:00
dst : /usr/lib/systemd/system/sing-box.service
2022-08-12 22:53:46 +08:00
- src : release/config/sing-box@.service
2024-03-19 12:01:28 +08:00
dst : /usr/lib/systemd/system/sing-box@.service
2024-09-23 22:12:19 +08:00
- src : release/completions/sing-box.bash
dst : /usr/share/bash-completion/completions/sing-box.bash
- src : release/completions/sing-box.fish
dst : /usr/share/fish/vendor_completions.d/sing-box.fish
- src : release/completions/sing-box.zsh
dst : /usr/share/zsh/site-functions/_sing-box
2022-08-12 22:53:46 +08:00
- src : LICENSE
dst : /usr/share/licenses/sing-box/LICENSE
2024-03-12 22:01:18 +08:00
deb :
signature :
key_file : "{{ .Env.NFPM_KEY_PATH }}"
2024-04-10 19:43:29 +08:00
fields :
Bugs : https://github.com/SagerNet/sing-box/issues
2024-03-12 22:01:18 +08:00
rpm :
signature :
key_file : "{{ .Env.NFPM_KEY_PATH }}"
overrides :
2024-09-23 22:12:19 +08:00
apk :
contents :
- src : release/config/config.json
dst : /etc/sing-box/config.json
type : config
- src : release/config/sing-box.initd
dst : /etc/init.d/sing-box
- src : release/completions/sing-box.bash
dst : /usr/share/bash-completion/completions/sing-box.bash
- src : release/completions/sing-box.fish
dst : /usr/share/fish/vendor_completions.d/sing-box.fish
- src : release/completions/sing-box.zsh
dst : /usr/share/zsh/site-functions/_sing-box
- src : LICENSE
dst : /usr/share/licenses/sing-box/LICENSE
ipk :
contents :
- src : release/config/config.json
dst : /etc/sing-box/config.json
type : config
2024-03-12 22:01:18 +08:00
2024-09-23 22:12:19 +08:00
- src : release/config/openwrt.init
dst : /etc/init.d/sing-box
- src : release/config/openwrt.conf
dst : /etc/config/sing-box
2022-08-12 22:53:46 +08:00
source :
2022-08-21 13:03:19 +08:00
enabled : false
2022-08-12 22:53:46 +08:00
name_template : '{{ .ProjectName }}-{{ .Version }}.source'
prefix_template : '{{ .ProjectName }}-{{ .Version }}/'
checksum :
2022-08-21 13:03:19 +08:00
disable : true
2022-08-12 22:53:46 +08:00
name_template : '{{ .ProjectName }}-{{ .Version }}.checksum'
signs :
- artifacts : checksum
release :
github :
owner : SagerNet
name : sing-box
draft : true
2024-03-12 22:01:18 +08:00
prerelease : auto
mode : replace
ids :
- archive
- package
2024-12-04 21:25:16 +08:00
skip_upload : true
partial :
by : target