Skip to content

Commit

Permalink
added icon for Windows exe file and cleaned up assets
Browse files Browse the repository at this point in the history
  • Loading branch information
NewtonChutney committed Dec 17, 2023
1 parent c56cd6e commit 527be32
Show file tree
Hide file tree
Showing 13 changed files with 208 additions and 243 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.

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<h1>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="logo_dark.svg">
<source media="(prefers-color-scheme: light)" srcset="logo_light.svg">
<img alt="Helix" height="128" src="logo_light.svg">
<source media="(prefers-color-scheme: dark)" srcset="assets/logo_dark.svg">
<source media="(prefers-color-scheme: light)" srcset="assets/logo_light.svg">
<img alt="Helix" height="128" src="assets/logo_light.svg">
</picture>
</h1>

Expand All @@ -16,7 +16,7 @@

</div>

![Screenshot](./screenshot.png)
![Screenshot](./assets/screenshot.png)

A Kakoune / Neovim inspired editor, written in Rust.

Expand Down
Binary file added assets/logo.ico
Binary file not shown.
29 changes: 29 additions & 0 deletions assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions assets/logo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions assets/logo_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
4 changes: 1 addition & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
".ignore"
".github"
".gitignore"
"logo_dark.svg"
"logo_light.svg"
"rust-toolchain.toml"
"rustfmt.toml"
"runtime"
Expand Down Expand Up @@ -142,7 +140,7 @@
postInstall = ''
mkdir -p $out/share/applications $out/share/icons/hicolor/scalable/apps $out/share/icons/hicolor/256x256/apps
cp contrib/Helix.desktop $out/share/applications
cp logo.svg $out/share/icons/hicolor/scalable/apps/helix.svg
cp assets/logo.svg $out/share/icons/hicolor/scalable/apps/helix.svg
cp contrib/helix.png $out/share/icons/hicolor/256x256/apps
'';
});
Expand Down
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
Loading

0 comments on commit 527be32

Please sign in to comment.