Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions crates/athas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ version.workspace = true
license.workspace = true
publish.workspace = true

[target.'cfg(windows)'.build-dependencies]
winres = "0.1"

[dependencies]
gpui.workspace = true
gpui_platform.workspace = true
Expand Down
10 changes: 10 additions & 0 deletions crates/athas/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// GPUI loads icon resource 1 from the exe on Windows.
#[cfg(windows)]
fn main() {
let mut res = winres::WindowsResource::new();
res.set_icon("../../packaging/icons/icon.ico");
res.compile().expect("could not embed the Windows app icon");
}

#[cfg(not(windows))]
fn main() {}
3 changes: 3 additions & 0 deletions crates/athas/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Release builds on Windows are GUI apps; a console window would stream logs and close the app with it.
#![cfg_attr(all(windows, not(debug_assertions)), windows_subsystem = "windows")]

use std::io::IsTerminal as _;

use gpui::App;
Expand Down