add cfg windows for build.rs

This commit is contained in:
shenjack 2024-02-01 21:51:42 +08:00
parent 8df1ebbde5
commit a9078ab763
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -1,5 +1,6 @@
fn main() { fn main() {
if cfg!(windows) { #[cfg(windows)]
{
let mut res = winres::WindowsResource::new(); let mut res = winres::WindowsResource::new();
// res.set_icon("icon.ico"); // res.set_icon("icon.ico");
// res.set_manifest(&manifest); // res.set_manifest(&manifest);