.goreleaser.fury.yaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. project_name: sing-box
  2. builds:
  3. - id: main
  4. main: ./cmd/sing-box
  5. flags:
  6. - -v
  7. - -trimpath
  8. ldflags:
  9. - -X github.com/sagernet/sing-box/constant.Version={{ .Version }}
  10. - -s
  11. - -buildid=
  12. tags:
  13. - with_gvisor
  14. - with_quic
  15. - with_dhcp
  16. - with_wireguard
  17. - with_utls
  18. - with_acme
  19. - with_clash_api
  20. - with_tailscale
  21. env:
  22. - CGO_ENABLED=0
  23. targets:
  24. - linux_386
  25. - linux_amd64_v1
  26. - linux_arm64
  27. - linux_arm_7
  28. - linux_s390x
  29. - linux_riscv64
  30. - linux_mips64le
  31. mod_timestamp: '{{ .CommitTimestamp }}'
  32. snapshot:
  33. name_template: "{{ .Version }}.{{ .ShortCommit }}"
  34. nfpms:
  35. - &template
  36. id: package
  37. package_name: sing-box
  38. file_name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
  39. builds:
  40. - main
  41. homepage: https://sing-box.sagernet.org/
  42. maintainer: nekohasekai <[email protected]>
  43. description: The universal proxy platform.
  44. license: GPLv3 or later
  45. formats:
  46. - deb
  47. - rpm
  48. priority: extra
  49. contents:
  50. - src: release/config/config.json
  51. dst: /etc/sing-box/config.json
  52. type: "config|noreplace"
  53. - src: release/config/sing-box.service
  54. dst: /usr/lib/systemd/system/sing-box.service
  55. - src: release/config/[email protected]
  56. dst: /usr/lib/systemd/system/[email protected]
  57. - src: release/config/sing-box.sysusers
  58. dst: /usr/lib/sysusers.d/sing-box.conf
  59. - src: release/config/sing-box.rules
  60. dst: /usr/share/polkit-1/rules.d/sing-box.rules
  61. - src: release/config/sing-box-split-dns.xml
  62. dst: /usr/share/dbus-1/system.d/sing-box-split-dns.conf
  63. - src: release/completions/sing-box.bash
  64. dst: /usr/share/bash-completion/completions/sing-box.bash
  65. - src: release/completions/sing-box.fish
  66. dst: /usr/share/fish/vendor_completions.d/sing-box.fish
  67. - src: release/completions/sing-box.zsh
  68. dst: /usr/share/zsh/site-functions/_sing-box
  69. - src: LICENSE
  70. dst: /usr/share/licenses/sing-box/LICENSE
  71. deb:
  72. signature:
  73. key_file: "{{ .Env.NFPM_KEY_PATH }}"
  74. fields:
  75. Bugs: https://github.com/SagerNet/sing-box/issues
  76. rpm:
  77. signature:
  78. key_file: "{{ .Env.NFPM_KEY_PATH }}"
  79. conflicts:
  80. - sing-box-beta
  81. - id: package_beta
  82. <<: *template
  83. package_name: sing-box-beta
  84. file_name_template: '{{ .ProjectName }}-beta_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
  85. formats:
  86. - deb
  87. - rpm
  88. conflicts:
  89. - sing-box
  90. release:
  91. disable: true
  92. furies:
  93. - account: sagernet
  94. ids:
  95. - package
  96. disable: "{{ not (not .Prerelease) }}"
  97. - account: sagernet
  98. ids:
  99. - package_beta
  100. disable: "{{ not .Prerelease }}"