From 4649bd42aebbfc6c54407bd01094142bb51a784a Mon Sep 17 00:00:00 2001 From: tinybug <43219257+tinybug-m@users.noreply.github.com> Date: Sun, 17 Nov 2024 15:20:26 +0330 Subject: [PATCH] fix build problem (#347) * fix build problem * fix fully remove S-UI panel in README.md * fix frontend build problem (npm install before build frontend) * web/html folder dosent exist at the fisrt place --- README.md | 4 ++++ build.sh | 6 ++++-- frontend/package-lock.json | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 18815a0..b907afc 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,8 @@ bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.s ## Uninstall S-UI ```sh +sudo -i + systemctl disable sing-box --now systemctl disable s-ui --now @@ -59,6 +61,8 @@ rm -f /etc/systemd/system/sing-box.service systemctl daemon-reload rm -fr /usr/local/s-ui +rm /usr/bin/s-ui + ``` ## Install using Docker diff --git a/build.sh b/build.sh index 7bca0fd..bb00705 100755 --- a/build.sh +++ b/build.sh @@ -1,13 +1,15 @@ #!/bin/sh cd frontend +npm i npm run build cd .. cd backend echo "Backend" +mkdir -p web/html rm -fr web/html/* -cp -R ../frontend/dist/ web/html/ +cp -R ../frontend/dist/* web/html/ -go build -o ../sui main.go \ No newline at end of file +go build -o ../sui main.go diff --git a/frontend/package-lock.json b/frontend/package-lock.json index cc604d5..cf837f0 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "frontend", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "frontend", - "version": "1.0.0", + "version": "1.1.0", "dependencies": { "@mdi/font": "7.4.47", "axios": "^1.7.4",