update docker and release workflow

This commit is contained in:
Alireza Ahmadi
2025-01-06 00:09:15 +01:00
parent 8073e8ab0a
commit e92cf56557
5 changed files with 6 additions and 135 deletions
+3 -15
View File
@@ -60,7 +60,7 @@ jobs:
cd ..
mv frontend/dist backend/web/html
- name: Build s-ui & singbox
- name: Build s-ui
run: |
export CGO_ENABLED=1
export GOOS=linux
@@ -88,27 +88,15 @@ jobs:
export CC=s390x-linux-gnu-gcc
fi
#### Build Sing-Box
export VERSION=v1.10.1
git clone -b $VERSION https://github.com/SagerNet/sing-box
cd sing-box
go build -tags with_quic,with_grpc,with_wireguard,with_ech,with_utls,with_reality_server,with_acme,with_v2ray_api,with_clash_api,with_gvisor \
-v -trimpath -ldflags "-X 'github.com/sagernet/sing-box/constant.Version=${VERSION}' -s -w -buildid=" \
-o sing-box ./cmd/sing-box
cd ..
### Build s-ui
cd backend
go build -o ../sui main.go
go build -ldflags="-w -s" -tags "with_quic,with_grpc,with_ech,with_utls,with_reality_server,with_acme,with_gvisor" -o ../sui main.go
cd ..
mkdir s-ui
cp sui s-ui/
cp s-ui.service s-ui/
cp sing-box.service s-ui/
mkdir s-ui/bin
cp sing-box/sing-box s-ui/bin/
cp core/runSingbox.sh s-ui/bin/
cp s-ui.sh s-ui/
- name: Package
run: tar -zcvf s-ui-linux-${{ matrix.platform }}.tar.gz s-ui