nvm-windows 0.1.4

A tool to manage Node.js versions.
1
2
3
4
5
6
7
8
9
10
11
12
fn main() {
  if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
    let mut res = winresource::WindowsResource::new();
    if let Ok(true) = std::fs::exists("test.ico") {
      res.set_icon("test.ico");
    }
    // if let Ok(manifest) = std::fs::read_to_string("manifest.xml") {
    //   res.set_manifest(&manifest);
    // }
    res.compile().unwrap();
  }
}