Skip to content

Commit

Permalink
moved external crate to the top
Browse files Browse the repository at this point in the history
  • Loading branch information
NewtonChutney committed Dec 17, 2023
1 parent c56cd6e commit 91bd5c8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 5 deletions.
29 changes: 24 additions & 5 deletions Cargo.lock

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

Binary file added contrib/helix-256p.ico
Binary file not shown.
4 changes: 4 additions & 0 deletions helix-term/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ 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
7 changes: 7 additions & 0 deletions helix-term/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
extern crate winres;

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

fn main() {
Expand All @@ -6,4 +8,9 @@ fn main() {
build_grammars(Some(std::env::var("TARGET").unwrap()))
.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();
}
}

0 comments on commit 91bd5c8

Please sign in to comment.