| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| fn main() { | ||
| if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" { | ||
|
Comment thread
arihant2math marked this conversation as resolved.
|
||
| println!("cargo:rerun-if-changed=logo.ico"); | ||
| let mut res = winresource::WindowsResource::new(); | ||
| if std::path::Path::new("logo.ico").exists() { | ||
|
Comment thread
arihant2math marked this conversation as resolved.
|
||
| res.set_icon("logo.ico"); | ||
| } else { | ||
| println!("cargo:warning=logo.ico not found, skipping icon embedding"); | ||
| return; | ||
| } | ||
| res.compile() | ||
| .map_err(|e| { | ||
| println!("cargo:warning=Failed to compile Windows resources: {e}"); | ||
| }) | ||
| .ok(); | ||
| } | ||
| } | ||
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.