1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2025-11-03 20:30:35 +00:00
This commit is contained in:
2025-10-19 04:16:31 +11:00
parent 892fa7ce41
commit 800c5ff7f1
4 changed files with 16 additions and 16 deletions

View File

@@ -1,5 +1,8 @@
version: 2
project_name: sub2clash
before:
hooks:
- bash ./build-frontend.sh {{ .Version }}
builds:
- env:
- CGO_ENABLED=0
@@ -10,19 +13,10 @@ builds:
goarch:
- amd64
- arm64
- "386"
ldflags:
- -s -w -X github.com/bestnite/sub2clash/constant.Version={{ .Version }}
flags:
- -trimpath
hooks:
pre:
- cmd: npm install
dir: server/frontend
- cmd: npm run build
dir: server/frontend
env:
- VITE_APP_VERSION={{ .Version }}
archives:
- formats: ["tar.gz"]
format_overrides:
@@ -35,9 +29,9 @@ archives:
- templates
release:
draft: true
upx:
- enabled: true
compress: best
# upx:
# - enabled: true
# compress: best
nfpms:
- id: sub2clash
homepage: https://github.com/bestnite/sub2clash