feat: use risefront to replace overseer in order to supports Windows

This commit is contained in:
Hintay 2024-10-31 02:07:08 +09:00 committed by Jacky
parent cf531e3f09
commit bfba7ba2c2
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
2 changed files with 36 additions and 21 deletions

View file

@ -7,6 +7,7 @@ import (
"net/http"
"net/url"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
@ -16,7 +17,6 @@ import (
"github.com/0xJacky/Nginx-UI/internal/helper"
"github.com/0xJacky/Nginx-UI/internal/version"
"github.com/0xJacky/Nginx-UI/settings"
"github.com/jpillora/overseer"
"github.com/minio/selfupdate"
"github.com/pkg/errors"
"github.com/uozi-tech/cosy/logger"
@ -269,7 +269,6 @@ func (u *Upgrader) PerformCoreUpgrade(tarPath string) (err error) {
}
// gracefully restart
overseer.Restart()
return
cmd := exec.Command(os.Args[0])
return cmd.Start()
}