From 58e5592c2b0d44118c6a798ac8de9ac0b84a91d1 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 7 Dec 2024 16:27:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-config/build-pack.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/build-config/build-pack.js b/build-config/build-pack.js index 35296c07eb..569252c83b 100644 --- a/build-config/build-pack.js +++ b/build-config/build-pack.js @@ -82,12 +82,18 @@ const linuxOptions = { icon: './resources/icons', category: 'Utility;AudioVideo;Audio;Player;Music;', desktop: { - Name: 'LX Music', - 'Name[zh_CN]': 'LX Music', - 'Name[zh_TW]': 'LX Music', - Encoding: 'UTF-8', - MimeType: 'x-scheme-handler/lxmusic', - StartupNotify: 'false', + // https://www.electron.build/app-builder-lib.interface.linuxdesktopfile + // https://www.electronjs.org/docs/latest/tutorial/linux-desktop-actions + // https://specifications.freedesktop.org/desktop-entry-spec/latest/example.html + // https://developer.gnome.org/documentation/guidelines/maintainer/integrating.html#desktop-files + entry: { + Name: 'LX Music', + 'Name[zh_CN]': 'LX Music', + 'Name[zh_TW]': 'LX Music', + Encoding: 'UTF-8', + MimeType: 'x-scheme-handler/lxmusic', + StartupNotify: 'false', + }, }, }, appImage: {