-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.rs
27 lines (25 loc) · 817 Bytes
/
build.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use {
std::{
env,
io,
},
winresource::WindowsResource,
};
fn main() -> io::Result<()> {
let config: slint_build::CompilerConfiguration =
slint_build::CompilerConfiguration::new()
.with_style("cosmic-dark".into());
slint_build::compile_with_config("ui/template.slint", config).unwrap();
if env::var_os("CARGO_CFG_WINDOWS").is_some() {
WindowsResource::new()
// This path can be absolute, or relative to your crate root.
.set_icon("assets/pdf.ico")
.set("FileVersion", "1.0.0")
.set("FileDescription", "PDF Searcher")
.set("ProductName", "PDF Searcher")
.set("ProductVersion", "1.0.0")
.set("LegalCopyright", "Copyright © 2024")
.compile()?;
}
Ok(())
}