Bundle overlay via extraResources for packaged build

This commit is contained in:
2026-04-26 10:40:03 -07:00
parent 0474f51f03
commit ba36dd569f
2 changed files with 11 additions and 4 deletions
+3 -1
View File
@@ -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;
+8 -3
View File
@@ -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": {