Skip to content

Commit

Permalink
Build in the icon on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nabijaczleweli committed Aug 18, 2019
1 parent c117235 commit de22bdf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
!gh_rsa.enc
!appveyor.yml
!LICENSE
!build.rs
!Cargo.toml
!rustfmt.toml
!.clang-format
!*Makefile
!*.sublime-project
!*.md
!*.rc
!man
!man/**
!ext
Expand Down
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ version = "0.1.0"
# Remember to also update in man/*.md
authors = ["nabijaczleweli <[email protected]>"]
exclude = ["*.enc"]
build = "build.rs"


[dependencies]
Expand All @@ -36,3 +37,6 @@ features = ["derive"]

[dev-dependencies]
rand = "0.7"

[build-dependencies]
embed-resource = "1.2"
6 changes: 6 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
extern crate embed_resource;


fn main() {
embed_resource::compile("pir-8-emu-manifest.rc");
}
1 change: 1 addition & 0 deletions pir-8-emu-manifest.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 ICON "assets/pir-8-emu.ico"

0 comments on commit de22bdf

Please sign in to comment.