Skip to content

Commit

Permalink
Icon for windows (WIP)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann Woelper committed Sep 17, 2019
1 parent 65f15ea commit 1a39d19
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 2 deletions.
38 changes: 38 additions & 0 deletions Cargo.lock

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

6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ nalgebra = "*"
dds-rs = "0.7.0"
rgb = "*"
psd = "0.1.4"
rs-exr = {git = "https://github.com/johannesvollmer/rs-exr.git"}
rs-exr = {git = "https://github.com/johannesvollmer/rs-exr.git"}


[target.'cfg(windows)'.build-dependencies]
windres = "0.2"
10 changes: 10 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#[cfg(windows)]
extern crate windres;
use windres::Build;

fn main() {
match Build::new().compile("winres.rc") {
Ok(_b) => println!("Made icon"),
Err(e) => println!("{:?}", e)
}
}
Binary file added icon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//#![windows_subsystem = "windows"]
#![windows_subsystem = "windows"]

mod utils;
use clap;
Expand Down
1 change: 1 addition & 0 deletions winres.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 ICON "icon.ico"

0 comments on commit 1a39d19

Please sign in to comment.