diff --git a/crates/radicle-tauri/main.desktop b/crates/radicle-tauri/main.desktop new file mode 100644 index 000000000..8f0024e5d --- /dev/null +++ b/crates/radicle-tauri/main.desktop @@ -0,0 +1,26 @@ +{{!-- + Custom .desktop template for Linux bundles, referenced from + tauri.linux.conf.json (bundle.linux.deb.desktopTemplate). + + On Linux, Tauri derives the package name (deb/rpm) from `productName`, with + no way to set the two independently (https://github.com/tauri-apps/tauri/issues/13999, + still open). We override `productName` to "radicle-desktop" in + tauri.linux.conf.json so the package and its artifacts are named + "radicle-desktop" (the Arch PKGBUILD also globs on that name). The cost is + that the launcher/menu entry would otherwise read "radicle-desktop" too. + + This template is Tauri's built-in default with a single change: `Name` is + hardcoded to "Radicle" instead of `{{name}}`, so the app shows as "Radicle" + in the desktop environment while the package stays "radicle-desktop". Keep + every other line in sync with Tauri's default template on major upgrades. +--}} +[Desktop Entry] +Categories={{categories}} +{{#if comment}} +Comment={{comment}} +{{/if}} +Exec={{exec}} +Icon={{icon}} +Name=Radicle +Terminal=false +Type=Application diff --git a/crates/radicle-tauri/tauri.linux.conf.json b/crates/radicle-tauri/tauri.linux.conf.json index 59c2b6751..10d2074d8 100644 --- a/crates/radicle-tauri/tauri.linux.conf.json +++ b/crates/radicle-tauri/tauri.linux.conf.json @@ -1,3 +1,10 @@ { - "productName": "radicle-desktop" + "productName": "radicle-desktop", + "bundle": { + "linux": { + "deb": { + "desktopTemplate": "main.desktop" + } + } + } }