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;