mirror of
https://github.com/alterware/alterware-launcher.git
synced 2025-12-04 07:17:50 +00:00
replace winres with winresource
This commit is contained in:
19
res/build.rs
19
res/build.rs
@@ -1,16 +1,7 @@
|
||||
#[cfg(windows)]
|
||||
extern crate winres;
|
||||
|
||||
#[cfg(windows)]
|
||||
fn main() {
|
||||
let mut res = winres::WindowsResource::new();
|
||||
res.set_icon("res/icon.ico").set_language(0x0409);
|
||||
|
||||
if let Err(e) = res.compile() {
|
||||
eprintln!("{}", e);
|
||||
std::process::exit(1);
|
||||
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
|
||||
let mut res = winresource::WindowsResource::new();
|
||||
res.set_icon("res/icon.ico").set_language(0x0409);
|
||||
res.compile().unwrap();
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
fn main() {}
|
||||
}
|
||||
Reference in New Issue
Block a user