mirror of
https://github.com/Felitendo/spotifast.git
synced 2026-11-01 17:33:26 +01:00
Add the contributed native updater with package-manager guidance, verified staging and startup confirmation. Keep backups complete on copy failure and use independent macOS mountpoints for retries. Integrate the automatic-download setting with Settings search. Full contribution checks pass locally. Demo tests cover keeping downloads alive when the window closes and waiting for an explicit restart. Native Linux helper tests verified installation, first-window confirmation and failed-start rollback with restored executable hashes. Popup captures were reviewed at narrow and wide sizes in both themes. Co-authored-by: coah <100182500+coah80@users.noreply.github.com>
12 lines
460 B
Rust
12 lines
460 B
Rust
fn main() -> anyhow::Result<()> {
|
|
let path = std::env::args_os()
|
|
.nth(1)
|
|
.ok_or_else(|| anyhow::anyhow!("Pass the application executable path"))?;
|
|
let path = std::path::PathBuf::from(path).canonicalize()?;
|
|
match fastpotify::updates::install::detect_at(&path) {
|
|
Ok(installation) => println!("{}", serde_json::to_string(&installation)?),
|
|
Err(error) => println!("Managed or unsupported: {error:#}"),
|
|
}
|
|
Ok(())
|
|
}
|