mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-24 11:44:42 -05:00
update: goreleaser
This commit is contained in:
parent
4d9e2083b4
commit
1cbb5dadfc
2
.github/workflows/goreleaser.yaml
vendored
2
.github/workflows/goreleaser.yaml
vendored
@ -26,6 +26,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: latest
|
version: latest
|
||||||
args: release --rm-dist --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
34
.goreleaser.pre.yaml
Normal file
34
.goreleaser.pre.yaml
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
project_name: sub2sing-box
|
||||||
|
builds:
|
||||||
|
- env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
|
goos:
|
||||||
|
- windows
|
||||||
|
- linux
|
||||||
|
- darwin
|
||||||
|
goarch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
- arm
|
||||||
|
- "386"
|
||||||
|
ldflags:
|
||||||
|
- -s -w -X sub2sing-box/main.Version={{ .Version }}
|
||||||
|
flags:
|
||||||
|
- -trimpath
|
||||||
|
no_unique_dist_dir: true
|
||||||
|
archives:
|
||||||
|
- format: tar.gz
|
||||||
|
format_overrides:
|
||||||
|
- format: zip
|
||||||
|
goos: windows
|
||||||
|
wrap_in_directory: true
|
||||||
|
files:
|
||||||
|
- LICENSE
|
||||||
|
- README.md
|
||||||
|
- templates
|
||||||
|
release:
|
||||||
|
prerelease: auto
|
||||||
|
draft: true
|
||||||
|
github:
|
||||||
|
owner: nitezs
|
||||||
|
name: sub2sing-box
|
@ -26,3 +26,7 @@ archives:
|
|||||||
- LICENSE
|
- LICENSE
|
||||||
- README.md
|
- README.md
|
||||||
- templates
|
- templates
|
||||||
|
release:
|
||||||
|
github:
|
||||||
|
owner: nitezs
|
||||||
|
name: sub2sing-box
|
||||||
|
Loading…
Reference in New Issue
Block a user