feat: Linux release packaging
Tarball, .deb and AppImage from tool/bundle-linux.sh, and an Arch PKGBUILD. The window carries the dev.musyx.Musyx app id so desktops match it to the installed desktop entry and icons. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28e273c31e
commit
f80de805c2
9 files changed
+303
-2
No files matched your search
@@ -18,6 +18,10 @@ use iced::{Size, window};
|
||||
use app::App;
|
||||
use ui::theme;
|
||||
|
||||
/// The Linux application id: the window's Wayland app id / X11 class and the `.desktop` name.
|
||||
#[cfg(target_os = "linux")]
|
||||
const APP_ID: &str = "dev.musyx.Musyx";
|
||||
|
||||
fn main() -> iced::Result {
|
||||
let app = iced::application(App::new, App::update, App::view)
|
||||
.title(App::title)
|
||||
@@ -28,6 +32,12 @@ fn main() -> iced::Result {
|
||||
size: Size::new(1280.0, 800.0),
|
||||
min_size: Some(Size::new(960.0, 620.0)),
|
||||
icon: window::icon::from_file_data(include_bytes!("../assets/icon/musyx.png"), None).ok(),
|
||||
// Matches the installed `dev.musyx.Musyx.desktop`, so the shell shows its name and icon.
|
||||
#[cfg(target_os = "linux")]
|
||||
platform_specific: window::settings::PlatformSpecific {
|
||||
application_id: APP_ID.to_owned(),
|
||||
..Default::default()
|
||||
},
|
||||
..window::Settings::default()
|
||||
})
|
||||
.centered();
|
||||
|
||||
@@ -24,6 +24,7 @@ impl NowPlaying {
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg(any(target_os = "macos", test))]
|
||||
fn line(&self) -> String {
|
||||
if self.artist.is_empty() { self.title.clone() } else { format!("{} — {}", self.title, self.artist) }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user