tauri/cli/tauri.js/templates/src-tauri/src/build.rs

17 lines
407 B
Rust
Raw Normal View History

#[cfg(windows)]
extern crate winres;
#[cfg(windows)]
fn main() {
if std::path::Path::new("icons/icon.ico").exists() {
let mut res = winres::WindowsResource::new();
res.set_icon_with_id("icons/icon.ico", "32512");
res.compile().expect("Unable to find visual studio tools");
} else {
panic!("No Icon.ico found. Please add one or check the path");
}
2020-02-12 04:31:29 +03:00
}
#[cfg(not(windows))]
fn main() {}