0
0
mirror of https://github.com/cucumber-sp/yandex-music-linux.git synced 2025-08-15 14:03:44 +03:00

Merge pull request #198 from alldevic/fix-5580

This commit is contained in:
Andrey Onischenko 2025-07-27 17:23:07 +03:00 committed by GitHub
commit 1da19e0e46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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"