From 308b70554cd356a79bce76ad933d5ddfa403de4c Mon Sep 17 00:00:00 2001 From: Nikolay Bely Date: Wed, 13 Aug 2025 00:00:03 +0700 Subject: [PATCH 1/2] Fix VIBE_ANIMATION_MAX_FPS --- repack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repack.sh b/repack.sh index d875e1d..8c35add 100755 --- a/repack.sh +++ b/repack.sh @@ -74,7 +74,7 @@ find "./" -type f \( -name "*.js" -o -name "*.js.map" \) -print0 | while IFS= re sed -i 's/panel:!1,allowOverwriteExperiments:!1/panel:window.IS_DEVTOOLS_ENABLED??!1,allowOverwriteExperiments:window.IS_DEVTOOLS_ENABLED??!1/g' "$file" sed -i -E 's;"MacOS",(\w).LINUX="Linux";"MacOS",\1.LINUX="Windows";g' "$file" sed -i -E 's;LINUX:(\w)="uVNvVMAvdrvjtwN0VlhEt2";LINUX:\1="kzqU4XhfCaY6B6JTHODeq5";g' "$file" - sed -i "s/a=atob(e)/a=atob(e).replace('nt(25,', \`nt(\${window.VIBE_ANIMATION_MAX_FPS??25},\`)/g" "$file" + sed -i "s/n=atob(e)/n=atob(e).replace('nt(25,', \`nt(\${window.VIBE_ANIMATION_MAX_FPS??25},\`)/g" "$file" done echo ".js chunks patched" From 89a9971ea39ae415beea94fcac7c2210028f76de Mon Sep 17 00:00:00 2001 From: Nikolay Bely Date: Wed, 13 Aug 2025 00:21:13 +0700 Subject: [PATCH 2/2] fix patch 0003 offset --- patches/0003-Create-app-tray-icon.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/0003-Create-app-tray-icon.patch b/patches/0003-Create-app-tray-icon.patch index 426ebf5..8945ae2 100644 --- a/patches/0003-Create-app-tray-icon.patch +++ b/patches/0003-Create-app-tray-icon.patch @@ -29,20 +29,20 @@ 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 -@@ -24,2 +24,5 @@ +@@ -25,2 +25,5 @@ const handleWindowLifecycleEvents = (window) => { + const isPlatformWindows = deviceInfo_js_1.devicePlatform === platform_js_1.Platform.WINDOWS; + const isTrayEnabled = process.env.TRAY_ENABLED && process.env.TRAY_ENABLED > 0; + const isAlwaysLeaveToTray = process.env.ALWAYS_LEAVE_TO_TRAY && process.env.ALWAYS_LEAVE_TO_TRAY > 0; electron_1.app.on('activate', () => { -@@ -31,5 +34,5 @@ const handleWindowLifecycleEvents = (window) => { +@@ -32,5 +35,5 @@ const handleWindowLifecycleEvents = (window) => { electron_1.app.on('window-all-closed', () => { - if ([platform_js_1.Platform.WINDOWS, platform_js_1.Platform.LINUX].includes(deviceInfo_js_1.devicePlatform)) { + if (!isTrayEnabled || isPlatformWindows) { electron_1.app.quit(); } }); -@@ -54,18 +57,13 @@ const handleWindowLifecycleEvents = (window) => { +@@ -55,18 +58,13 @@ const handleWindowLifecycleEvents = (window) => { window.on('close', (event) => { - if (deviceInfo_js_1.devicePlatform !== platform_js_1.Platform.MACOS) { - return;