From 98e29b1c3e7c4fe42f44aa7c704a498e58674cc8 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sun, 20 Mar 2022 21:07:08 -0700 Subject: [PATCH] Add .exe icon --- Cargo.lock | 25 +++++++++++++++++++++++++ Cargo.toml | 6 +++++- build.rs | 9 +++++++++ septadrop.ico | Bin 0 -> 2578 bytes 4 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 build.rs create mode 100644 septadrop.ico diff --git a/Cargo.lock b/Cargo.lock index bef1c36..5ad5ef2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -184,8 +184,15 @@ dependencies = [ "home", "rand", "sfml", + "winres", ] +[[package]] +name = "serde" +version = "1.0.136" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789" + [[package]] name = "sfml" version = "0.16.0" @@ -207,6 +214,15 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53e0893aaf18583de27202b17007258377d5c4be16e1d0b601fd6943bc36c98b" +[[package]] +name = "toml" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa" +dependencies = [ + "serde", +] + [[package]] name = "unicode-xid" version = "0.2.2" @@ -246,3 +262,12 @@ name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "winres" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c" +dependencies = [ + "toml", +] diff --git a/Cargo.toml b/Cargo.toml index 006cb4d..5cc057f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "septadrop" version = "1.1.0" edition = "2021" +build = "build.rs" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -15,4 +16,7 @@ sfml = "0.16.0" rand = "0.8.5" home = "0.5.3" gcd = "2.1.0" -const_format = "0.2.22" \ No newline at end of file +const_format = "0.2.22" + +[build-dependencies] +winres = "0.1" \ No newline at end of file diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..71f942d --- /dev/null +++ b/build.rs @@ -0,0 +1,9 @@ +extern crate winres; + +fn main() { + if cfg!(target_os = "windows") { + let mut res = winres::WindowsResource::new(); + res.set_icon("septadrop.ico"); + res.compile().unwrap(); + } +} \ No newline at end of file diff --git a/septadrop.ico b/septadrop.ico new file mode 100644 index 0000000000000000000000000000000000000000..86ed60bba1980e2fa4ef6ee6f788d20a4e842e0c GIT binary patch literal 2578 zcmY*b3sh3s8a@a~re^orq-kNd>E=vRhRb|31=RE~Zz7uITkvW(bD^29tAc`7W7nnG zYMe?%#a1Ik3TT?<1JP!LZe{AAVVYn%Nrs3H;!zQ}n0G<#v(7qu?fpN#{r~^>?*jl3 z!?QXdfIYBc0RUSJ^L&3lZ|e;X8w^uxpHs)rtnRM9>&*?Hh~x(s0Kno`pW{c*W|S*N zvHyvT-3p%#il=#15BBY{4RkDaZQ34Zc|{8=U|ZH~w!7lA$#Zb$6~}eej&1!ve&^Y` z>7irN{T(|`qy`rJ!>8K6F*oisHv0FX;+uaJ{ZvmVc=DH*n%z96Gx#<|R<2hzlV#;C zV8u0!ER(LOOmS&}89=NK`-0OlRBltpQfGR>+~7#l<_WANt#{!d{oX;IPC2g6O4D|a zFP1jMu4u3xb8ae{lfIpsnK~Y+ssxZ2GvJB^uzq1C6BiZ6E%!QC8|tZ$9OSaBo|5e( z!7JqLUdzqni|@lZAJWj!v*0OnvG<|78$K!R26haMk%7k(*Mke@7Pf-0roH&cLfm%p zzsBccLGI>>&|WUv6UPfEY@4wd;PO*416|RXFFmfIS-_4GAScS;`vwQ@Uqd$Yl+;HQ z(q2y|xN9j|U1W{EGR~d-COo`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