.goreleaser.fury.yaml 2.7 KB

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