Files
s-ui/build.sh
T
Alireza Ahmadi 51cf30f429 v1.4.0
2026-03-09 02:37:15 +01:00

16 lines
388 B
Bash
Executable File

#!/bin/sh
cd frontend
npm i
npm run build
cd ..
echo "Backend"
mkdir -p web/html
rm -fr web/html/*
cp -R frontend/dist/* web/html/
BUILD_TAGS="with_quic,with_grpc,with_utls,with_acme,with_gvisor,with_naive_outbound,with_musl,badlinkname,tfogo_checklinkname0"
go build -ldflags '-w -s -checklinkname=0 -extldflags "-Wl,-no_warn_duplicate_libraries"' -tags "$BUILD_TAGS" -o sui main.go