diff --git a/package.json b/package.json index 591ad73d..e4b8df83 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,13 @@ "mac": { "identity": null, "files": [ - "!dist/plugins/taskbar-mediacontrol${/*}" + "!*", + "dist", + "!dist/plugins/taskbar-mediacontrol${/*}", + "license", + "node_modules", + "package.json", + "tests" ], "target": [ { @@ -33,7 +39,13 @@ "win": { "icon": "assets/generated/icons/win/icon.ico", "files": [ - "!plugins/touchbar${/*}" + "!*", + "dist", + "!dist/plugins/touchbar${/*}", + "license", + "node_modules", + "package.json", + "tests" ], "target": [ { @@ -58,7 +70,13 @@ "linux": { "icon": "assets/generated/icons/png", "files": [ - "!plugins/{touchbar,taskbar-mediacontrol}${/*}" + "!*", + "dist", + "!dist/plugins/{touchbar,taskbar-mediacontrol}${/*}", + "license", + "node_modules", + "package.json", + "tests" ], "category": "AudioVideo", "target": [ @@ -90,9 +108,9 @@ "generate:package": "node utils/generate-package-json.js", "postinstall": "npm run plugins", "clean": "del-cli dist && del-cli pack", - "ytm-css-copy-files": "copyfiles youtube-music.css dist/", + "ytm-resource-copy-files": "copyfiles error.html youtube-music.css assets/**/* dist/", "copy-files": "copyfiles -u 1 plugins/**/*.html plugins/**/*.css plugins/**/*.bin plugins/**/*.js dist/plugins/", - "tsc-and-copy": "tsc && npm run plugin:adblocker-without-tsc && npm run ytm-css-copy-files && npm run copy-files", + "tsc-and-copy": "tsc && npm run plugin:adblocker-without-tsc && npm run ytm-resource-copy-files && npm run copy-files", "build": "npm run clean && npm run tsc-and-copy && electron-builder --win --mac --linux -p never", "build:linux": "npm run clean && npm run tsc-and-copy && electron-builder --linux -p never", "build:mac": "npm run clean && npm run tsc-and-copy && electron-builder --mac dmg:x64 -p never", diff --git a/plugins/notifications/interactive.ts b/plugins/notifications/interactive.ts index 3e33c1e4..ab724ba2 100644 --- a/plugins/notifications/interactive.ts +++ b/plugins/notifications/interactive.ts @@ -154,7 +154,7 @@ const getXml = (songInfo: SongInfo, iconSrc: string) => { const iconLocation = app.isPackaged ? path.resolve(app.getPath('userData'), 'icons') - : path.resolve(__dirname, '..', '..', '..', 'assets/media-icons-black'); + : path.resolve(__dirname, '..', '..', 'assets/media-icons-black'); const display = (kind: keyof typeof icons) => { if (config.get('toastStyle') === ToastStyles.legacy) {