mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
fix: assets path
This commit is contained in:
28
package.json
28
package.json
@ -17,7 +17,13 @@
|
|||||||
"mac": {
|
"mac": {
|
||||||
"identity": null,
|
"identity": null,
|
||||||
"files": [
|
"files": [
|
||||||
"!dist/plugins/taskbar-mediacontrol${/*}"
|
"!*",
|
||||||
|
"dist",
|
||||||
|
"!dist/plugins/taskbar-mediacontrol${/*}",
|
||||||
|
"license",
|
||||||
|
"node_modules",
|
||||||
|
"package.json",
|
||||||
|
"tests"
|
||||||
],
|
],
|
||||||
"target": [
|
"target": [
|
||||||
{
|
{
|
||||||
@ -33,7 +39,13 @@
|
|||||||
"win": {
|
"win": {
|
||||||
"icon": "assets/generated/icons/win/icon.ico",
|
"icon": "assets/generated/icons/win/icon.ico",
|
||||||
"files": [
|
"files": [
|
||||||
"!plugins/touchbar${/*}"
|
"!*",
|
||||||
|
"dist",
|
||||||
|
"!dist/plugins/touchbar${/*}",
|
||||||
|
"license",
|
||||||
|
"node_modules",
|
||||||
|
"package.json",
|
||||||
|
"tests"
|
||||||
],
|
],
|
||||||
"target": [
|
"target": [
|
||||||
{
|
{
|
||||||
@ -58,7 +70,13 @@
|
|||||||
"linux": {
|
"linux": {
|
||||||
"icon": "assets/generated/icons/png",
|
"icon": "assets/generated/icons/png",
|
||||||
"files": [
|
"files": [
|
||||||
"!plugins/{touchbar,taskbar-mediacontrol}${/*}"
|
"!*",
|
||||||
|
"dist",
|
||||||
|
"!dist/plugins/{touchbar,taskbar-mediacontrol}${/*}",
|
||||||
|
"license",
|
||||||
|
"node_modules",
|
||||||
|
"package.json",
|
||||||
|
"tests"
|
||||||
],
|
],
|
||||||
"category": "AudioVideo",
|
"category": "AudioVideo",
|
||||||
"target": [
|
"target": [
|
||||||
@ -90,9 +108,9 @@
|
|||||||
"generate:package": "node utils/generate-package-json.js",
|
"generate:package": "node utils/generate-package-json.js",
|
||||||
"postinstall": "npm run plugins",
|
"postinstall": "npm run plugins",
|
||||||
"clean": "del-cli dist && del-cli pack",
|
"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/",
|
"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": "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: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",
|
"build:mac": "npm run clean && npm run tsc-and-copy && electron-builder --mac dmg:x64 -p never",
|
||||||
|
|||||||
@ -154,7 +154,7 @@ const getXml = (songInfo: SongInfo, iconSrc: string) => {
|
|||||||
|
|
||||||
const iconLocation = app.isPackaged
|
const iconLocation = app.isPackaged
|
||||||
? path.resolve(app.getPath('userData'), 'icons')
|
? 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) => {
|
const display = (kind: keyof typeof icons) => {
|
||||||
if (config.get('toastStyle') === ToastStyles.legacy) {
|
if (config.get('toastStyle') === ToastStyles.legacy) {
|
||||||
|
|||||||
Reference in New Issue
Block a user