diff --git a/desktop-client/index.js b/desktop-client/index.js index a054e1b..62ca9e6 100644 --- a/desktop-client/index.js +++ b/desktop-client/index.js @@ -4,7 +4,9 @@ const { startServer } = require('./server'); const { createTray } = require('./tray'); const PORT = 9095; -const OVERLAY_DIR = path.join(__dirname, '..', 'overlay'); +const OVERLAY_DIR = app.isPackaged + ? path.join(process.resourcesPath, 'overlay') + : path.join(__dirname, '..', 'overlay'); const YT_MUSIC_URL = 'https://music.youtube.com'; let serverHandle = null; diff --git a/desktop-client/package.json b/desktop-client/package.json index fc32546..604490a 100644 --- a/desktop-client/package.json +++ b/desktop-client/package.json @@ -13,14 +13,19 @@ "productName": "WhatsThatMusic", "files": [ "**/*", - "!tests/**", - "../overlay/**/*" + "!tests/**" + ], + "extraResources": [ + { "from": "../overlay", "to": "overlay" } ], "extraMetadata": { "main": "index.js" }, "win": { - "target": "zip" + "target": "zip", + "sign": false, + "signAndEditExecutable": false, + "certificateSubjectName": null } }, "dependencies": {