This commit is contained in:
BuyMyMojo 2024-06-29 01:22:22 +10:00
commit ebdc182e86
47 changed files with 8090 additions and 0 deletions

21
build.rs Normal file
View file

@ -0,0 +1,21 @@
use std::io;
#[cfg(windows)]
use winres::WindowsResource;
#[allow(clippy::unnecessary_wraps)]
// I'm just keeping this as the example had it, no need to warn me about this since it doesn't affect the actual code
/// This code will set the windows program icon to the fbt logo
///
/// # Errors
///
/// This function will return an error if the icon file cannot be found at compile time.
fn main() -> io::Result<()> {
#[cfg(windows)]
{
WindowsResource::new()
// This path can be absolute, or relative to your crate root.
.set_icon("assets/icon.ico")
.compile()?;
}
Ok(())
}