mirror of
https://github.com/Felitendo/spotifast.git
synced 2026-11-01 17:33:26 +01:00
The executable now carries the icon and version information Windows shows in Explorer and the taskbar. The release workflow also builds an Inno Setup installer next to each zip: per-user, no administrator rights, a Start menu entry, and it closes a running copy before an update replaces it. The download page lists the installers from the next release on.
18 lines
689 B
Rust
18 lines
689 B
Rust
//! Windows executables carry their icon and version information as
|
|
//! resources; everywhere else there is nothing to do.
|
|
|
|
fn main() {
|
|
#[cfg(windows)]
|
|
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
|
|
println!("cargo:rerun-if-changed=packaging/windows/fastpotify.ico");
|
|
let mut resource = winresource::WindowsResource::new();
|
|
resource
|
|
.set_icon("packaging/windows/fastpotify.ico")
|
|
.set("ProductName", "Fastpotify")
|
|
.set("FileDescription", "Fastpotify");
|
|
if let Err(error) = resource.compile() {
|
|
println!("cargo:warning=Windows resources not embedded: {error}");
|
|
}
|
|
}
|
|
}
|