From c6a3542d6bbec2838cd9919a2eb97c8e96846883 Mon Sep 17 00:00:00 2001 From: iwate Date: Wed, 9 Sep 2020 18:29:18 +0900 Subject: [PATCH] fix deamon path --- src/Aiplugs.PoshApp.Electron/src/background.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Aiplugs.PoshApp.Electron/src/background.js b/src/Aiplugs.PoshApp.Electron/src/background.js index 7f1970b..2a7468e 100644 --- a/src/Aiplugs.PoshApp.Electron/src/background.js +++ b/src/Aiplugs.PoshApp.Electron/src/background.js @@ -220,8 +220,7 @@ if (isDevelopment) { let connection; async function startPowerShellDeamon () { const binary = process.platform == 'win32' ? 'Aiplugs.PoshApp.Deamon.exe' : 'Aiplugs.PoshApp.Deamon' - const prefix = process.platform == 'darwin' ? '../bin' : 'resources/bin' - const deamon = isDevelopment ? `bin/${binary}` : path.join(__dirname, prefix, binary) + const deamon = isDevelopment ? `bin/${binary}` : path.join(__dirname, '../bin', binary) const childProcess = cp.spawn(deamon); // Use stdin and stdout for communication: