diff --git a/patches/0001-Add-package-licence.patch b/patches/0001-Add-package-licence.patch index dd8ff15..88fc6b9 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 -@@ -51,5 +51,6 @@ +@@ -50,5 +50,6 @@ "kk", "az" ] @@ -9,4 +9,3 @@ 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 deleted file mode 100644 index 93cb5f0..0000000 --- a/patches/0002-Add-package-icon.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/package.json b/package.json ---- a/package.json -+++ b/package.json -@@ -52,5 +52,9 @@ - "az" - ] - }, -- "license": "UNLICENSED" -+ "license": "UNLICENSED", -+ "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/0002-Create-app-tray-icon.patch similarity index 92% rename from patches/0003-Create-app-tray-icon.patch rename to patches/0002-Create-app-tray-icon.patch index 4cf3adb..dddb3e6 100644 --- a/patches/0003-Create-app-tray-icon.patch +++ b/patches/0002-Create-app-tray-icon.patch @@ -43,7 +43,7 @@ diff --git a/main/index.js b/main/index.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 -@@ -28,9 +28,8 @@ const handleWindowLifecycleEvents = (window) => { +@@ -31,9 +31,8 @@ const handleWindowLifecycleEvents = (window) => { state_js_1.state.willQuit = true; }); electron_1.app.on('window-all-closed', () => { @@ -55,7 +55,7 @@ diff --git a/main/lib/handlers/handleWindowLifecycleEvents.js b/main/lib/handler }); electron_1.app.on('browser-window-blur', () => { setBlurredTime(); -@@ -51,22 +50,11 @@ const handleWindowLifecycleEvents = (window) => { +@@ -54,22 +53,11 @@ const handleWindowLifecycleEvents = (window) => { checkAndUpdateApplicationData(window); }); window.on('close', (event) => { @@ -80,6 +80,5 @@ diff --git a/main/lib/handlers/handleWindowLifecycleEvents.js b/main/lib/handler - } + (0, createWindow_js_1.toggleWindowVisibility)(window, false); }); - }; - exports.handleWindowLifecycleEvents = handleWindowLifecycleEvents; - \ No newline at end of file + const webContents = window.webContents; + webContents.on('did-fail-load', (event, errorCode, errorDescription, validatedUrl) => { diff --git a/patches/0004-Fix-window-resize.patch b/patches/0003-Fix-window-resize.patch similarity index 100% rename from patches/0004-Fix-window-resize.patch rename to patches/0003-Fix-window-resize.patch