File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import (
1111 "github.com/JacksonTheMaster/StationeersServerUI/v5/src/managers/backupmgr"
1212 "github.com/JacksonTheMaster/StationeersServerUI/v5/src/managers/detectionmgr"
1313 "github.com/JacksonTheMaster/StationeersServerUI/v5/src/setup"
14+ "github.com/JacksonTheMaster/StationeersServerUI/v5/src/setup/update"
1415)
1516
1617// only call this once at startup
@@ -74,7 +75,7 @@ func InitDetector() {
7475}
7576
7677func RestartBackend () {
77- setup .RestartMySelf ()
78+ update .RestartMySelf ()
7879}
7980
8081func ReloadLocalizer () {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import (
1616
1717 "github.com/JacksonTheMaster/StationeersServerUI/v5/src/config"
1818 "github.com/JacksonTheMaster/StationeersServerUI/v5/src/logger"
19+ "github.com/JacksonTheMaster/StationeersServerUI/v5/src/setup/update"
1920)
2021
2122var downloadBranch string // Holds the branch to download from
@@ -25,7 +26,7 @@ func Install(wg *sync.WaitGroup) {
2526 defer wg .Done () // Signal that installation is complete
2627
2728 // Step 0: Check for updates
28- if err := UpdateExecutable (); err != nil {
29+ if err := update . UpdateExecutable (); err != nil {
2930 logger .Install .Error ("❌Update check went sideways: " + err .Error ())
3031 }
3132
Original file line number Diff line number Diff line change 11//go:build linux
22
3- package setup
3+ package update
44
55import (
66 "os/exec"
Original file line number Diff line number Diff line change 11//go:build windows
22
3- package setup
3+ package update
44
55import (
66 "os/exec"
Original file line number Diff line number Diff line change 1- package setup
1+ package update
22
33import (
44 "encoding/json"
You can’t perform that action at this time.
0 commit comments