diff --git a/resources/js/index.js b/resources/js/index.js index d288dac..93fd1e4 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -273,7 +273,9 @@ async function closeFirstTimePopup() { } async function runInstallScript() { - Neutralino.os.execCommand(`${NL_CWD}/scripts/install.cmd "${NL_CWD}"`) + const script = NL_OS === 'Windows' ? 'install.cmd':'install.sh' + + Neutralino.os.execCommand(`${NL_CWD}/scripts/${script} "${NL_CWD}"`) // Create an interval that will check for the proxy server installation finish const interval = setInterval(async () => {