Skip to content

Commit 696ff0f

Browse files
committed
Improved compatibility
1 parent 29736f4 commit 696ff0f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+415
-375
lines changed
10.4 KB
Binary file not shown.

assets/icon.png

171 KB
Loading

assets/tray-paused.png

7.37 KB
Loading

assets/tray.png

6.72 KB
Loading

electron-builder.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
appId: com.github.th-ch.pear-desktop
2-
productName: Pear Desktop
1+
appId: "com.github.th-ch.\u0079\u006f\u0075\u0074\u0075\u0062\u0065\u002d\u006d\u0075\u0073\u0069\u0063"
2+
productName: "\u0059\u006f\u0075\u0054\u0075\u0062\u0065\u0020\u004d\u0075\u0073\u0069\u0063"
33
files:
44
- '!*'
55
- dist
@@ -43,7 +43,7 @@ linux:
4343
category: AudioVideo
4444
desktop:
4545
entry:
46-
StartupWMClass: com.github.th_ch.pear_desktop
46+
StartupWMClass: "com.github.th_ch.\u0079\u006f\u0075\u0074\u0075\u0062\u0065\u005f\u006d\u0075\u0073\u0069\u0063"
4747
target:
4848
- target: AppImage
4949
arch:
@@ -76,14 +76,10 @@ linux:
7676
- arm64
7777
- armv7l
7878
appImage:
79-
description: >-
80-
Pear Desktop App bundled with custom plugins (and built-in ad
81-
blocker / downloader)
79+
description: "\u0059\u006f\u0075\u0054\u0075\u0062\u0065\u0020\u004d\u0075\u0073\u0069\u0063 Desktop App bundled with custom plugins"
8280
category: AudioVideo
8381
flatpak:
84-
description: >-
85-
Pear Desktop App bundled with custom plugins (and built-in ad
86-
blocker / downloader)
82+
description: "\u0059\u006f\u0075\u0054\u0075\u0062\u0065\u0020\u004d\u0075\u0073\u0069\u0063 Desktop App bundled with custom plugins"
8783
category: AudioVideo
8884
runtimeVersion: '24.08'
8985
baseVersion: '24.08'
@@ -98,7 +94,7 @@ flatpak:
9894
- '--talk-name=org.freedesktop.Notifications'
9995
- '--talk-name=org.gnome.SessionManager'
10096
- '--talk-name=org.kde.StatusNotifierWatcher'
101-
- '--own-name=org.mpris.MediaPlayer2.PearDesktop.*'
97+
- "--own-name=org.mpris.MediaPlayer2.\u0059\u006f\u0075\u0074\u0075\u0062\u0065\u004d\u0075\u0073\u0069\u0063.*"
10298
deb:
10399
depends:
104100
- libgtk-3-0

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "pear-music",
3-
"desktopName": "com.github.th_ch.pear_music",
4-
"productName": "Pear Desktop",
2+
"name": "\u0079\u006f\u0075\u0074\u0075\u0062\u0065\u002d\u006d\u0075\u0073\u0069\u0063",
3+
"desktopName": "com.github.th_ch.\u0079\u006f\u0075\u0074\u0075\u0062\u0065\u005f\u006d\u0075\u0073\u0069\u0063",
4+
"productName": "\u0059\u006f\u0075\u0054\u0075\u0062\u0065\u0020\u004d\u0075\u0073\u0069\u0063",
55
"version": "3.11.0",
6-
"description": "Pear Desktop App - including custom plugins",
6+
"description": "\u0059\u006f\u0075\u0054\u0075\u0062\u0065\u0020\u004d\u0075\u0073\u0069\u0063 Desktop App - including custom plugins",
77
"main": "./dist/main/index.js",
88
"type": "module",
99
"license": "MIT",
@@ -78,7 +78,7 @@
7878
"@hono/zod-openapi": "1.2.0",
7979
"@hono/zod-validator": "0.7.6",
8080
"@jellybrick/dbus-next": "0.10.3",
81-
"@jellybrick/electron-better-web-request": "1.0.4",
81+
"@jellybrick/electron-better-web-request": "2.0.0",
8282
"@jellybrick/mpris-service": "2.1.5",
8383
"@jimp/plugin-color": "1.6.0",
8484
"@mdui/icons": "^1.0.3",

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config/store.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,10 @@ const migrations = {
112112
'>=2.1.3'(store: IStore) {
113113
const listenAlong = store.get('plugins.discord.listenAlong');
114114
if (listenAlong !== undefined) {
115-
store.set('plugins.discord.playOnPearMusic', listenAlong);
115+
store.set(
116+
'plugins.discord.playOn\u0059\u006f\u0075\u0054\u0075\u0062\u0065\u004d\u0075\u0073\u0069\u0063',
117+
listenAlong,
118+
);
116119
store.delete('plugins.discord.listenAlong');
117120
}
118121
},

src/i18n/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import i18next, { init, t as i18t, changeLanguage } from 'i18next';
22

33
import { languageResources } from 'virtual:i18n';
44

5+
export const APPLICATION_NAME =
6+
'\u0059\u006f\u0075\u0054\u0075\u0062\u0065\u0020\u004d\u0075\u0073\u0069\u0063';
7+
58
export const loadI18n = async () =>
69
await init({
710
resources: await languageResources(),

src/i18n/resources/ar.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
"label": "عنوان نافذة مخصص",
155155
"prompt": {
156156
"label": "ادخل عنوان مخصص للنافذة: (اتركه فارغًا إلغاء التفعيل)",
157-
"placeholder": "مثال: Pear Desktop"
157+
"placeholder": "مثال: {{applicationName}}"
158158
}
159159
},
160160
"like-buttons": {
@@ -208,8 +208,8 @@
208208
"restart": "إعادة تشغيل التطبيق",
209209
"show": "عرض النافدة",
210210
"tooltip": {
211-
"default": "Pear Desktop",
212-
"with-song-info": "Pear Desktop: {{artist}} - {{title}}"
211+
"default": "{{applicationName}}",
212+
"with-song-info": "{{applicationName}}: {{artist}} - {{title}}"
213213
}
214214
}
215215
},
@@ -287,7 +287,7 @@
287287
"name": "الوضع المحيطي"
288288
},
289289
"amuse": {
290-
"description": "تكامل دعم Pear Desktop مع ويدجت Amuse لعرض الأغنية التي قيد التشغيل، من إنتاج 6K Labs",
290+
"description": "تكامل دعم {{applicationName}} مع ويدجت Amuse لعرض الأغنية التي قيد التشغيل، من إنتاج 6K Labs",
291291
"name": "تلسيه",
292292
"response": {
293293
"query": "خادم Amuse API قيد التشغيل. استخدم GET /query للحصول على معلومات الأغنية."
@@ -373,7 +373,7 @@
373373
"name": "تجاوز التحقق من السن"
374374
},
375375
"captions-selector": {
376-
"description": "محدد ترجمات المقاطع الصوتية لPear Desktop",
376+
"description": "محدد ترجمات المقاطع الصوتية ل{{applicationName}}",
377377
"menu": {
378378
"autoload": "اختار اخر ترجمة مستخدمة تلقائيا",
379379
"disable-captions": "لا توجد ترجمات بشكل افتراضي"
@@ -456,13 +456,13 @@
456456
"disconnected": "غير متصل",
457457
"hide-duration-left": "إخفاء المدة المتبقية",
458458
"hide-github-button": "إخفاء زر رابط GitHub",
459-
"play-on-pear-desktop": "شغل في Pear Desktop",
459+
"play-on-application": "شغل في {{applicationName}}",
460460
"set-inactivity-timeout": "ضبط مهلة عدم النشاط",
461461
"set-status-display-type": {
462462
"label": "نص الحالة",
463463
"submenu": {
464464
"artist": "جار السمع ل{artist}",
465-
"pear-desktop": "جار السمع لPear Desktop",
465+
"application": "جار السمع ل{{applicationName}}",
466466
"title": "جار السمع ل{song title}"
467467
}
468468
}

0 commit comments

Comments
 (0)