Skip to content

Commit 4056948

Browse files
committed
windows: Add app icon
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 079af34 commit 4056948

4 files changed

Lines changed: 20 additions & 0 deletions

File tree

Cargo.lock

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

framework_tool/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ path = "../framework_lib"
1010
# Note: Only takes effect in release builds
1111
static_vcruntime = "2.0"
1212
embed-resource = "3.0"
13+
winresource = "0.1.17"
1314

1415
[target.'cfg(windows)'.dependencies.winapi]
1516
version = "0.3.9"

framework_tool/build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
fn main() {
2+
// Add app icon
3+
if std::env::var_os("CARGO_CFG_WINDOWS").is_some() {
4+
winresource::WindowsResource::new()
5+
.set_icon("..\\res\\framework_startmenuicon.ico")
6+
.compile()
7+
.unwrap();
8+
}
9+
210
if !cfg!(debug_assertions) {
311
// Statically link vcruntime to allow running on clean install
412
static_vcruntime::metabuild();

res/framework_startmenuicon.ico

87.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)