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
This commit is contained in:
tinybug
2024-11-17 15:20:26 +03:30
committed by GitHub
parent e89ac96885
commit 4649bd42ae
3 changed files with 10 additions and 4 deletions
+4
View File
@@ -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
+4 -2
View File
@@ -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
go build -o ../sui main.go
+2 -2
View File
@@ -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",