2021-01-18 00:18:35 +01:00
|
|
|
extern crate winres;
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2025-10-23 21:35:45 +02:00
|
|
|
// Suppress int-conversion warnings for macOS ARM (Apple Silicon) webview compatibility
|
2025-10-23 21:26:03 +02:00
|
|
|
if cfg!(target_os = "macos") && cfg!(target_arch = "aarch64") {
|
2025-10-23 21:35:45 +02:00
|
|
|
println!("cargo:rustc-env=CFLAGS=-Wno-int-conversion");
|
2025-10-23 21:26:03 +02:00
|
|
|
}
|
|
|
|
|
|
2021-01-18 00:18:35 +01:00
|
|
|
if cfg!(target_os = "windows") {
|
|
|
|
|
let mut res = winres::WindowsResource::new();
|
2021-04-06 01:20:20 +02:00
|
|
|
res.set_icon("img/logo/alfis.ico");
|
2021-01-18 00:18:35 +01:00
|
|
|
res.compile().unwrap();
|
|
|
|
|
}
|
|
|
|
|
}
|