From be1182d3025e3fff653fc80d9db6a06078148539 Mon Sep 17 00:00:00 2001 From: theolivenbaum Date: Wed, 10 Nov 2021 07:57:22 +0100 Subject: [PATCH] move .NET bin output to under Helpers folder to be compliant with macOS bundle formt --- ElectronNET.Host/electron.manifest.json | 10 +++++----- ElectronNET.Host/main.js | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ElectronNET.Host/electron.manifest.json b/ElectronNET.Host/electron.manifest.json index 014fdec..c28d4a6 100644 --- a/ElectronNET.Host/electron.manifest.json +++ b/ElectronNET.Host/electron.manifest.json @@ -17,11 +17,6 @@ "output": "../../../bin/Desktop" }, "extraResources": [ - { - "from": "./bin", - "to": "bin", - "filter": [ "**/*" ] - } ], "files": [ { @@ -29,6 +24,11 @@ "to": "ElectronHostHook/node_modules", "filter": [ "**/*" ] }, + { + "from": "./bin", + "to": "Helpers/bin", + "filter": [ "**/*" ] + }, "**/*" ] } diff --git a/ElectronNET.Host/main.js b/ElectronNET.Host/main.js index 2826576..754ba60 100644 --- a/ElectronNET.Host/main.js +++ b/ElectronNET.Host/main.js @@ -32,7 +32,8 @@ if (app.commandLine.hasSwitch('watch')) { watchable = true; }; -let currentBinPath = path.join(__dirname.replace('app.asar', ''), 'bin'); +let resourcesPath = __dirname.replace('app.asar', ''); +let currentBinPath = path.join(resourcesPath, '..', 'Helpers', 'bin'); let manifestJsonFilePath = path.join(currentBinPath, manifestJsonFileName); // if watch is enabled lets change the path