summaryrefslogtreecommitdiff
path: root/src-tauri/src/build.rs
blob: 75f4465031344334d3300ccfa62c4c7e6894fc3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[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.");
  }
}

#[cfg(not(windows))]
fn main() {}