Skip to content

Commit

Permalink
windows: Add app icon
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Jul 17, 2024
1 parent 03e8fc9 commit acc908a
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 2 deletions.
87 changes: 86 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions framework_tool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ windows = ["framework_lib/windows"]

[build-dependencies]
static_vcruntime = "2.0"
winresource = "0.1.17"

[dependencies.framework_lib]
path = "../framework_lib"
Expand Down
18 changes: 17 additions & 1 deletion framework_tool/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
fn main() {
use {
std::{
env,
io,
},
winresource::WindowsResource,
};

fn main() -> io::Result<()> {
if env::var_os("CARGO_CFG_WINDOWS").is_some() {
WindowsResource::new()
.set_icon("..\\res\\framework_startmenuicon.ico")
.compile()?;
}

static_vcruntime::metabuild();

Ok(())
}
Binary file added res/framework_startmenuicon.ico
Binary file not shown.

0 comments on commit acc908a

Please sign in to comment.