10 lines
278 B
Rust
10 lines
278 B
Rust
fn main() {
|
|
slint_build::compile("ui/main.slint").unwrap();
|
|
|
|
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
|
|
let mut res = winresource::WindowsResource::new();
|
|
res.set_icon("assets/app.ico");
|
|
res.compile().unwrap();
|
|
}
|
|
}
|