Skip to content

Commit

Permalink
Add windows GUI icon
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherRabotin committed Oct 11, 2024
1 parent 3528c9d commit 232b0b1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
14 changes: 14 additions & 0 deletions anise-gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
description = "A graphical user interface for ANISE"
build = "build.rs"

[dependencies]
anise = { workspace = true }
Expand All @@ -23,3 +24,16 @@ egui_logger = "0.6.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
poll-promise = { version = "0.3.0", features = ["web"] }


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

[package.metadata.tauri-winres]
FileDescription = "Inspect SPICE SPK and PCK binary files"
FileVersion = "0.4"
InternalName = "ANISE-GUI.EXE"
OriginalFilename = "ANISE-GUI.EXE"
ProductName = "ANISE"
ProductVersion = "0.4"
LegalCopyright = "Copyright (C) 2021-onward Christopher Rabotin"
9 changes: 9 additions & 0 deletions anise-gui/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#[cfg(windows)]
fn main() {
let mut res = tauri_winres::WindowsResource::new();
res.set_icon("icon.ico");
res.compile().unwrap();
}

#[cfg(not(windows))]
fn main() {}
Binary file added anise-gui/icon.ico
Binary file not shown.

0 comments on commit 232b0b1

Please sign in to comment.