From faab3bbcea1809229e29773bf1be50a1ee8eac47 Mon Sep 17 00:00:00 2001 From: Nikolay Bely Date: Mon, 7 Jul 2025 10:03:15 +0700 Subject: [PATCH 1/2] Fix 5.58.0 build --- 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 42a748e..426ebf5 100644 --- a/patches/0003-Create-app-tray-icon.patch +++ b/patches/0003-Create-app-tray-icon.patch @@ -76,7 +76,7 @@ diff --git a/main/lib/tray.js b/main/lib/tray.js @@ -5,3 +5,2 @@ const node_path_1 = require("node:path"); -const updater_js_1 = require("./updater.js"); - const i18n_js_1 = require("./i18n.js"); + const formatters_js_1 = require("./i18n/formatters.js"); @@ -14,4 +13,6 @@ const trayIcon = () => { - const iconPath = (0, node_path_1.join)(process.resourcesPath, 'assets', 'icon.ico'); @@ -92,7 +92,7 @@ diff --git a/main/lib/tray.js b/main/lib/tray.js @@ -32,8 +33,2 @@ const createContextMenu = (window) => { }, - { -- label: (0, i18n_js_1.formatMessage)({ id: 'desktop.check-for-updates' }), +- label: (0, formatters_js_1.formatMessage)({ id: 'desktop.check-for-updates' }), - click() { - updater.check(); - } @@ -124,7 +124,7 @@ diff --git a/package.json b/package.json diff --git a/main/events.js b/main/events.js --- a/main/events.js +++ b/main/events.js -@@ -38,8 +38,8 @@ const handleApplicationEvents = (window) => { +@@ -50,8 +50,8 @@ const handleApplicationEvents = (window) => { }); electron_1.ipcMain.on(events_js_1.Events.WINDOW_CLOSE, () => { eventsLogger.info('Event received', events_js_1.Events.WINDOW_CLOSE); From 9b219a962bcb692c7989dd66ac4638d853ee6b00 Mon Sep 17 00:00:00 2001 From: Nikolay Bely Date: Sat, 26 Jul 2025 13:59:02 +0700 Subject: [PATCH 2/2] Try to fix vibe --- repack.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repack.sh b/repack.sh index 29123e1..d875e1d 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/atob(a)/atob(a).replace('nt(25,', \`nt(\${window.VIBE_ANIMATION_MAX_FPS??25},\`)/g" "$file" + sed -i "s/a=atob(e)/a=atob(e).replace('nt(25,', \`nt(\${window.VIBE_ANIMATION_MAX_FPS??25},\`)/g" "$file" done echo ".js chunks patched"