From 7e826312fdd0f05878e3dab737da75e638dc8340 Mon Sep 17 00:00:00 2001 From: SpikeHD Date: Sat, 23 Apr 2022 19:02:07 -0700 Subject: [PATCH] differentiate between install scripts --- resources/js/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 () => {