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 { createTray } = require('./tray');
|
||||||
|
|
||||||
const PORT = 9095;
|
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';
|
const YT_MUSIC_URL = 'https://music.youtube.com';
|
||||||
|
|
||||||
let serverHandle = null;
|
let serverHandle = null;
|
||||||
|
|||||||
@@ -13,14 +13,19 @@
|
|||||||
"productName": "WhatsThatMusic",
|
"productName": "WhatsThatMusic",
|
||||||
"files": [
|
"files": [
|
||||||
"**/*",
|
"**/*",
|
||||||
"!tests/**",
|
"!tests/**"
|
||||||
"../overlay/**/*"
|
],
|
||||||
|
"extraResources": [
|
||||||
|
{ "from": "../overlay", "to": "overlay" }
|
||||||
],
|
],
|
||||||
"extraMetadata": {
|
"extraMetadata": {
|
||||||
"main": "index.js"
|
"main": "index.js"
|
||||||
},
|
},
|
||||||
"win": {
|
"win": {
|
||||||
"target": "zip"
|
"target": "zip",
|
||||||
|
"sign": false,
|
||||||
|
"signAndEditExecutable": false,
|
||||||
|
"certificateSubjectName": null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user