mirror of
https://github.com/Grasscutters/GrassClipper.git
synced 2024-08-14 05:11:48 +00:00
server installation watcher
This commit is contained in:
@ -275,6 +275,14 @@ async function closeFirstTimePopup() {
|
||||
async function runInstallScript() {
|
||||
Neutralino.os.execCommand(`${NL_CWD}/scripts/install.cmd "${NL_CWD}"`)
|
||||
|
||||
// Create an interval that will check for the proxy server installation finish
|
||||
const interval = setInterval(async () => {
|
||||
if (await proxyIsInstalled()) {
|
||||
clearInterval(interval)
|
||||
enableButtons()
|
||||
}
|
||||
}, 1000)
|
||||
|
||||
closeFirstTimePopup()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user