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",