From e265ecb08cc939cbd817aa0d060bd2dd30c0e78c Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Sat, 27 Apr 2024 20:40:19 +0300 Subject: [PATCH] Update patches --- patches/0001-Add-package-licence.patch | 3 ++- patches/0002-Add-package-icon.patch | 5 +++-- patches/0003-Create-app-tray-icon.patch | 11 +++++++---- patches/0004-Fix-window-resize.patch | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/patches/0001-Add-package-licence.patch b/patches/0001-Add-package-licence.patch index 13bb32b..873bbde 100644 --- a/patches/0001-Add-package-licence.patch +++ b/patches/0001-Add-package-licence.patch @@ -1,7 +1,7 @@ diff --git a/package.json b/package.json --- a/package.json +++ b/package.json -@@ -39,5 +39,6 @@ +@@ -42,5 +42,6 @@ "COPYRIGHT": "Яндекс Музыка", "TRADEMARK": "Яндекс Музыка", "DEEPLINK_PROTOCOL": "yandexmusic" @@ -9,3 +9,4 @@ diff --git a/package.json b/package.json + }, + "license": "UNLICENSED" } + \ No newline at end of file diff --git a/patches/0002-Add-package-icon.patch b/patches/0002-Add-package-icon.patch index b8d42ba..ff3529f 100644 --- a/patches/0002-Add-package-icon.patch +++ b/patches/0002-Add-package-icon.patch @@ -1,7 +1,7 @@ diff --git a/package.json b/package.json --- a/package.json +++ b/package.json -@@ -40,5 +40,9 @@ +@@ -43,5 +43,9 @@ "TRADEMARK": "Яндекс Музыка", "DEEPLINK_PROTOCOL": "yandexmusic" }, @@ -10,5 +10,6 @@ diff --git a/package.json b/package.json + "icon": { + "48x48": "build/next-desktop/favicon.png", + "scalable": "build/next-desktop/favicon.svg" -+ } ++ } } + \ No newline at end of file diff --git a/patches/0003-Create-app-tray-icon.patch b/patches/0003-Create-app-tray-icon.patch index 8b39e3a..be38b01 100644 --- a/patches/0003-Create-app-tray-icon.patch +++ b/patches/0003-Create-app-tray-icon.patch @@ -1,7 +1,7 @@ -diff --git a/./app/main/lib/createTray.js b/./app1/main/lib/createTray.js +diff --git a/main/lib/createTray.js b/main/lib/createTray.js --- a/main/lib/createTray.js +++ b/main/lib/createTray.js -@@ -0,0 +1,20 @@ +@@ -0,0 +1,21 @@ +const { app, Menu, Tray, nativeImage } = require('electron'); +const path = require('path'); + @@ -22,6 +22,7 @@ diff --git a/./app/main/lib/createTray.js b/./app1/main/lib/createTray.js +} + +exports.createTray = createTray; ++ diff --git a/main/index.js b/main/index.js @@ -38,7 +39,8 @@ diff --git a/main/index.js b/main/index.js (0, handleExternalLink_js_1.handleExternalLink)(window); (0, logger_js_1.logWindowLifecycle)(window); -diff --git a/./app/main/lib/handlers/handleWindowLifecycleEvents.js b/./app1/main/lib/handlers/handleWindowLifecycleEvents.js + +diff --git a/main/lib/handlers/handleWindowLifecycleEvents.js b/main/lib/handlers/handleWindowLifecycleEvents.js --- a/main/lib/handlers/handleWindowLifecycleEvents.js +++ b/main/lib/handlers/handleWindowLifecycleEvents.js @@ -29,9 +29,8 @@ const handleWindowLifecycleEvents = (window) => { @@ -79,4 +81,5 @@ diff --git a/./app/main/lib/handlers/handleWindowLifecycleEvents.js b/./app1/mai + (0, createWindow_js_1.toggleWindowVisibility)(window, false); }); }; - exports.handleWindowLifecycleEvents = handleWindowLifecycleEvents; \ No newline at end of file + exports.handleWindowLifecycleEvents = handleWindowLifecycleEvents; + \ No newline at end of file diff --git a/patches/0004-Fix-window-resize.patch b/patches/0004-Fix-window-resize.patch index c1c9ae1..3aa647b 100644 --- a/patches/0004-Fix-window-resize.patch +++ b/patches/0004-Fix-window-resize.patch @@ -1,7 +1,7 @@ diff --git a/main/lib/createWindow.js b/main/lib/createWindow.js --- a/main/lib/createWindow.js +++ b/main/lib/createWindow.js -@@ -16,8 +16,6 @@ const createWindow = async () => { +@@ -25,8 +25,6 @@ const createWindow = async () => { x: 16, y: 10 },