18 lines
608 B
Rust
18 lines
608 B
Rust
#[cfg(target_os = "windows")]
|
|
fn main() {
|
|
let mut res = winresource::WindowsResource::new();
|
|
res.set_icon("assets/icon.ico");
|
|
let version = env!("CARGO_PKG_VERSION");
|
|
let file_version = format!("{version}.0");
|
|
res.set("CompanyName", "vorojar");
|
|
res.set("FileDescription", "MD Preview");
|
|
res.set("FileVersion", &file_version);
|
|
res.set("LegalCopyright", "Copyright (c) vorojar");
|
|
res.set("ProductName", "MD Preview");
|
|
res.set("ProductVersion", version);
|
|
res.compile().expect("failed to compile Windows resources");
|
|
}
|
|
|
|
#[cfg(not(target_os = "windows"))]
|
|
fn main() {}
|