workflow: fix goreleaser config and containerfile

This commit is contained in:
2025-10-15 17:17:52 +11:00
parent 23d7e1d4f9
commit 18a89ea11a
22 changed files with 57 additions and 44 deletions

View File

@@ -1,3 +1,4 @@
version: 2
project_name: sub2sing-box
builds:
- env:
@@ -9,16 +10,15 @@ builds:
goarch:
- amd64
- arm64
- arm
- "386"
ldflags:
- -s -w -X github.com/nitezs/sub2sing-box/constant.Version={{ .Version }}
- -s -w -X github.com/bestnite/sub2sing-box/constant.Version={{ .Version }}
flags:
- -trimpath
archives:
- format: tar.gz
- formats: ["tar.gz"]
format_overrides:
- format: zip
- formats: ["zip"]
goos: windows
wrap_in_directory: true
files:
@@ -30,3 +30,16 @@ release:
upx:
- enabled: true
compress: best
nfpms:
- id: sub2sing-box
homepage: https://github.com/bestnite/sub2sing-box
maintainer: Nite <admin@nite07.com>
license: "MIT"
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
provides:
- sub2sing-box