server installation watcher

This commit is contained in:
SpikeHD 2022-04-24 13:25:39 -07:00
parent 2e1b052fc9
commit 3fb48582fd

View File

@ -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()
}