Initial impl
This commit is contained in:
commit
4b729c5d32
133 files changed
+20475
No files matched your search
@@ -0,0 +1,13 @@
|
||||
//! Embeds the icon and version info in the Windows executable.
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=assets/icon.ico");
|
||||
#[cfg(windows)]
|
||||
if std::env::var("CARGO_CFG_TARGET_OS").as_deref() == Ok("windows") {
|
||||
let mut res = winresource::WindowsResource::new();
|
||||
res.set_icon("assets/icon.ico");
|
||||
res.set("ProductName", "reqlite");
|
||||
res.set("FileDescription", "reqlite API client");
|
||||
res.compile().expect("embedding Windows resources");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user