diff --git a/app/main.dev.js b/app/main.dev.js index fd41d89d..0485b86a 100644 --- a/app/main.dev.js +++ b/app/main.dev.js @@ -127,7 +127,11 @@ const sendLndSynced = () => { // Starts the LND node const startLnd = () => { - const lndPath = path.join(__dirname, '..', 'resources', 'bin', plat, plat === 'win32' ? 'lnd.exe' : 'lnd') + let lndPath + process.env.NODE_ENV === 'development' ? + lndPath = path.join(__dirname, '..', 'resources', 'bin', plat, plat === 'win32' ? 'lnd.exe' : 'lnd') + : + lndPath = path.join(__dirname, '..', 'bin', plat === 'win32' ? 'lnd.exe' : 'lnd') const neutrino = spawn(lndPath, [ diff --git a/package.json b/package.json index 59392ec0..460277f5 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "zap-desktop", "productName": "ZapDesktop", - "version": "0.0.1", + "version": "0.1.0", "description": "desktop application for the lightning network", "scripts": { "build": "concurrently \"npm run build-main\" \"npm run build-renderer\"", @@ -80,7 +80,10 @@ "output": "release" }, "extraResources": [ - "**/resources/bin/darwin/lnd" + { + "from": "./resources/bin/darwin/lnd", + "to": "./bin/lnd" + } ] }, "repository": {