1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-22 05:33:02 +00:00

switch to winres crate

This commit is contained in:
Alula 2022-03-22 05:26:38 +01:00
parent 91f6f19914
commit d69e158b41
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA
3 changed files with 7 additions and 4 deletions

View file

@ -91,7 +91,7 @@ xmltree = "0.10.3"
winapi = { version = "0.3", features = ["winuser"] }
[target.'cfg(target_os = "windows")'.build-dependencies]
windres = "0.2"
winres = "0.1"
[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2.7"

View file

@ -1,7 +1,7 @@
use std::env;
#[cfg(target_os = "windows")]
extern crate windres;
extern crate winres;
fn main() {
// let dest = PathBuf::from(&env::var("OUT_DIR").unwrap());
@ -11,7 +11,11 @@ fn main() {
println!("cargo:rerun-if-changed=build.rs");
#[cfg(target_os = "windows")]
windres::Build::new().compile("res/resources.rc").unwrap();
{
let mut res = winres::WindowsResource::new();
res.set_icon("res/sue.ico");
res.compile().unwrap();
}
if target.contains("darwin") {
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15");

View file

@ -1 +0,0 @@
0 ICON "sue.ico"