mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-11-22 13:42:47 +00:00
switch to winres crate
This commit is contained in:
parent
91f6f19914
commit
d69e158b41
|
@ -91,7 +91,7 @@ xmltree = "0.10.3"
|
||||||
winapi = { version = "0.3", features = ["winuser"] }
|
winapi = { version = "0.3", features = ["winuser"] }
|
||||||
|
|
||||||
[target.'cfg(target_os = "windows")'.build-dependencies]
|
[target.'cfg(target_os = "windows")'.build-dependencies]
|
||||||
windres = "0.2"
|
winres = "0.1"
|
||||||
|
|
||||||
[target.'cfg(target_os = "macos")'.dependencies]
|
[target.'cfg(target_os = "macos")'.dependencies]
|
||||||
objc = "0.2.7"
|
objc = "0.2.7"
|
||||||
|
|
8
build.rs
8
build.rs
|
@ -1,7 +1,7 @@
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
extern crate windres;
|
extern crate winres;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// let dest = PathBuf::from(&env::var("OUT_DIR").unwrap());
|
// let dest = PathBuf::from(&env::var("OUT_DIR").unwrap());
|
||||||
|
@ -11,7 +11,11 @@ fn main() {
|
||||||
println!("cargo:rerun-if-changed=build.rs");
|
println!("cargo:rerun-if-changed=build.rs");
|
||||||
|
|
||||||
#[cfg(target_os = "windows")]
|
#[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") {
|
if target.contains("darwin") {
|
||||||
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15");
|
println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15");
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
0 ICON "sue.ico"
|
|
Loading…
Reference in a new issue