Skip to content

Commit

Permalink
alternate method of injecting the icon through a resource file, no ex…
Browse files Browse the repository at this point in the history
…tra deps
  • Loading branch information
NewtonChutney committed Dec 17, 2023
1 parent 3aaa895 commit d474112
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 33 deletions.
29 changes: 5 additions & 24 deletions Cargo.lock

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

Binary file not shown.
4 changes: 0 additions & 4 deletions helix-term/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ crossterm = { version = "0.27", features = ["event-stream", "use-dev-tty"] }
[build-dependencies]
helix-loader = { path = "../helix-loader" }

[target.'cfg(windows)'.build-dependencies]
# winres to inject icon into Windows binary
winres = "0.1.12"

[dev-dependencies]
smallvec = "1.11"
indoc = "2.0.4"
Expand Down
6 changes: 1 addition & 5 deletions helix-term/build.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
extern crate winres;

use helix_loader::grammar::{build_grammars, fetch_grammars};

fn main() {
Expand All @@ -9,8 +7,6 @@ fn main() {
.expect("Failed to compile tree-sitter grammars");
}
if cfg!(target_os = "windows") {
let mut res = winres::WindowsResource::new();
res.set_icon("../contrib/helix-256p.ico");
res.compile().unwrap();
println!("cargo:rustc-link-lib=./contrib/helix-icon-windows");
}
}

0 comments on commit d474112

Please sign in to comment.