Bundle overlay via extraResources for packaged build
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user