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:
@@ -51,6 +51,8 @@ bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.s
|
|||||||
## Uninstall S-UI
|
## Uninstall S-UI
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
sudo -i
|
||||||
|
|
||||||
systemctl disable sing-box --now
|
systemctl disable sing-box --now
|
||||||
systemctl disable s-ui --now
|
systemctl disable s-ui --now
|
||||||
|
|
||||||
@@ -59,6 +61,8 @@ rm -f /etc/systemd/system/sing-box.service
|
|||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
|
|
||||||
rm -fr /usr/local/s-ui
|
rm -fr /usr/local/s-ui
|
||||||
|
rm /usr/bin/s-ui
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Install using Docker
|
## Install using Docker
|
||||||
|
|||||||
@@ -1,13 +1,15 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd frontend
|
cd frontend
|
||||||
|
npm i
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
cd backend
|
cd backend
|
||||||
echo "Backend"
|
echo "Backend"
|
||||||
|
|
||||||
|
mkdir -p web/html
|
||||||
rm -fr 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
|
||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdi/font": "7.4.47",
|
"@mdi/font": "7.4.47",
|
||||||
"axios": "^1.7.4",
|
"axios": "^1.7.4",
|
||||||
|
|||||||
Reference in New Issue
Block a user