|
@@ -1,6 +1,7 @@
|
|
project_name: sing-box
|
|
project_name: sing-box
|
|
builds:
|
|
builds:
|
|
- - id: main
|
|
|
|
|
|
+ - &template
|
|
|
|
+ id: main
|
|
main: ./cmd/sing-box
|
|
main: ./cmd/sing-box
|
|
flags:
|
|
flags:
|
|
- -v
|
|
- -v
|
|
@@ -32,16 +33,10 @@ builds:
|
|
- windows_386
|
|
- windows_386
|
|
- windows_arm64
|
|
- windows_arm64
|
|
- darwin_amd64_v1
|
|
- darwin_amd64_v1
|
|
- - darwin_amd64_v3
|
|
|
|
- darwin_arm64
|
|
- darwin_arm64
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
mod_timestamp: '{{ .CommitTimestamp }}'
|
|
- id: legacy
|
|
- id: legacy
|
|
- main: ./cmd/sing-box
|
|
|
|
- flags:
|
|
|
|
- - -v
|
|
|
|
- - -trimpath
|
|
|
|
- ldflags:
|
|
|
|
- - -X github.com/sagernet/sing-box/constant.Version={{ .Version }} -s -w -buildid=
|
|
|
|
|
|
+ <<: *template
|
|
tags:
|
|
tags:
|
|
- with_gvisor
|
|
- with_gvisor
|
|
- with_quic
|
|
- with_quic
|
|
@@ -59,24 +54,8 @@ builds:
|
|
- windows_amd64_v1
|
|
- windows_amd64_v1
|
|
- windows_386
|
|
- windows_386
|
|
- darwin_amd64_v1
|
|
- darwin_amd64_v1
|
|
- mod_timestamp: '{{ .CommitTimestamp }}'
|
|
|
|
- id: android
|
|
- id: android
|
|
- main: ./cmd/sing-box
|
|
|
|
- flags:
|
|
|
|
- - -v
|
|
|
|
- - -trimpath
|
|
|
|
- ldflags:
|
|
|
|
- - -X github.com/sagernet/sing-box/constant.Version={{ .Version }} -s -w -buildid=
|
|
|
|
- tags:
|
|
|
|
- - with_gvisor
|
|
|
|
- - with_quic
|
|
|
|
- - with_dhcp
|
|
|
|
- - with_wireguard
|
|
|
|
- - with_ech
|
|
|
|
- - with_utls
|
|
|
|
- - with_reality_server
|
|
|
|
- - with_acme
|
|
|
|
- - with_clash_api
|
|
|
|
|
|
+ <<: *template
|
|
env:
|
|
env:
|
|
- CGO_ENABLED=1
|
|
- CGO_ENABLED=1
|
|
overrides:
|
|
overrides:
|
|
@@ -107,11 +86,11 @@ builds:
|
|
- android_arm64
|
|
- android_arm64
|
|
- android_386
|
|
- android_386
|
|
- android_amd64
|
|
- android_amd64
|
|
- mod_timestamp: '{{ .CommitTimestamp }}'
|
|
|
|
snapshot:
|
|
snapshot:
|
|
name_template: "{{ .Version }}.{{ .ShortCommit }}"
|
|
name_template: "{{ .Version }}.{{ .ShortCommit }}"
|
|
archives:
|
|
archives:
|
|
- - id: archive
|
|
|
|
|
|
+ - &template
|
|
|
|
+ id: archive
|
|
builds:
|
|
builds:
|
|
- main
|
|
- main
|
|
- android
|
|
- android
|
|
@@ -124,20 +103,16 @@ archives:
|
|
- LICENSE
|
|
- LICENSE
|
|
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
|
|
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
|
|
- id: archive-legacy
|
|
- id: archive-legacy
|
|
|
|
+ <<: *template
|
|
builds:
|
|
builds:
|
|
- legacy
|
|
- legacy
|
|
- format: tar.gz
|
|
|
|
- format_overrides:
|
|
|
|
- - goos: windows
|
|
|
|
- format: zip
|
|
|
|
- wrap_in_directory: true
|
|
|
|
- files:
|
|
|
|
- - LICENSE
|
|
|
|
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}-legacy'
|
|
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}-legacy'
|
|
nfpms:
|
|
nfpms:
|
|
- id: package
|
|
- id: package
|
|
package_name: sing-box
|
|
package_name: sing-box
|
|
file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
|
|
file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
|
|
|
|
+ builds:
|
|
|
|
+ - main
|
|
vendor: sagernet
|
|
vendor: sagernet
|
|
homepage: https://sing-box.sagernet.org/
|
|
homepage: https://sing-box.sagernet.org/
|
|
maintainer: nekohasekai <[email protected]>
|
|
maintainer: nekohasekai <[email protected]>
|
|
@@ -158,6 +133,20 @@ nfpms:
|
|
dst: /etc/systemd/system/[email protected]
|
|
dst: /etc/systemd/system/[email protected]
|
|
- src: LICENSE
|
|
- src: LICENSE
|
|
dst: /usr/share/licenses/sing-box/LICENSE
|
|
dst: /usr/share/licenses/sing-box/LICENSE
|
|
|
|
+ deb:
|
|
|
|
+ signature:
|
|
|
|
+ key_file: "{{ .Env.NFPM_KEY_PATH }}"
|
|
|
|
+ rpm:
|
|
|
|
+ signature:
|
|
|
|
+ key_file: "{{ .Env.NFPM_KEY_PATH }}"
|
|
|
|
+ overrides:
|
|
|
|
+ deb:
|
|
|
|
+ conflicts:
|
|
|
|
+ - sing-box-beta
|
|
|
|
+ rpm:
|
|
|
|
+ conflicts:
|
|
|
|
+ - sing-box-beta
|
|
|
|
+
|
|
source:
|
|
source:
|
|
enabled: false
|
|
enabled: false
|
|
name_template: '{{ .ProjectName }}-{{ .Version }}.source'
|
|
name_template: '{{ .ProjectName }}-{{ .Version }}.source'
|
|
@@ -171,6 +160,10 @@ release:
|
|
github:
|
|
github:
|
|
owner: SagerNet
|
|
owner: SagerNet
|
|
name: sing-box
|
|
name: sing-box
|
|
- name_template: '{{ if .IsSnapshot }}{{ nightly }}{{ else }}{{ .Version }}{{ end }}'
|
|
|
|
draft: true
|
|
draft: true
|
|
- mode: replace
|
|
|
|
|
|
+ prerelease: auto
|
|
|
|
+ mode: replace
|
|
|
|
+ ids:
|
|
|
|
+ - archive
|
|
|
|
+ - package
|
|
|
|
+ skip_upload: true
|