From 8d59cebfa0b5e6e9686bc4cfc81b4315ff84cc06 Mon Sep 17 00:00:00 2001 From: Robert Muehsig Date: Sun, 15 Oct 2017 00:08:32 +0200 Subject: [PATCH] todo added --- ElectronNET.Host/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index fc469c1..51db14f 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -48,6 +48,10 @@ function startAspCoreBackend(electronPort) { var binPath = path.join(__dirname, 'bin'); fs.readdir(binPath, (error, files) => { + + // ToDo: Read 'electronnet.json and use the exectuable' + // add '.exe' to the exectuable name on windows and leave as is on linux/mac and we are done + const exeFiles = files.filter((name) => name.indexOf('.exe') > -1); const exeFileName = exeFiles[0]; const apipath = path.join(binPath, exeFileName);