From 78289193c7c66e76d8433f06432ed2d111a62165 Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Wed, 18 Dec 2024 19:40:06 -0500 Subject: [PATCH] Add icons to windows builds --- Cargo.lock | 37 +++++++++++++++++++++++++++++++++++++ Cargo.toml | 1 + assets/lemur.ico | Bin 0 -> 27128 bytes build.Dockerfile | 20 +++++++++++++------- build.rs | 12 ++++++++++-- 5 files changed, 61 insertions(+), 9 deletions(-) create mode 100644 assets/lemur.ico diff --git a/Cargo.lock b/Cargo.lock index 001768b..da863fa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1800,6 +1800,7 @@ dependencies = [ "wgpu", "windows 0.58.0", "winit", + "winresource", ] [[package]] @@ -2879,6 +2880,15 @@ dependencies = [ "syn 2.0.90", ] +[[package]] +name = "serde_spanned" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87607cb1398ed59d48732e575a4c28a7a8ebf2454b964fe3f224f2afc07909e1" +dependencies = [ + "serde", +] + [[package]] name = "shlex" version = "1.3.0" @@ -3132,11 +3142,26 @@ dependencies = [ "zerovec", ] +[[package]] +name = "toml" +version = "0.8.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1ed1f98e3fdc28d6d910e6737ae6ab1a93bf1985935a1193e68f93eeb68d24e" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + [[package]] name = "toml_datetime" version = "0.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0dd7358ecb8fc2f8d014bf86f6f638ce72ba252a2c3a2572f2a795f1d23efb41" +dependencies = [ + "serde", +] [[package]] name = "toml_edit" @@ -3145,6 +3170,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" dependencies = [ "indexmap", + "serde", + "serde_spanned", "toml_datetime", "winnow", ] @@ -4085,6 +4112,16 @@ dependencies = [ "memchr", ] +[[package]] +name = "winresource" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7276691b353ad4547af8c3268488d1311f4be791ffdc0c65b8cfa8f41eed693b" +dependencies = [ + "toml", + "version_check", +] + [[package]] name = "write16" version = "1.0.0" diff --git a/Cargo.toml b/Cargo.toml index 054aceb..c2ac868 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,6 +37,7 @@ windows = { version = "0.58", features = ["Win32_System_Threading"] } [build-dependencies] cc = "1" +winresource = "0.1" [profile.release] lto = true diff --git a/assets/lemur.ico b/assets/lemur.ico new file mode 100644 index 0000000000000000000000000000000000000000..feda985fea308c952701de6574d65803f6ed2caf GIT binary patch literal 27128 zcmXV12|yE9*F{lLQ6g?p5mHyQigBp~Wl390sZyoZg;p?8Y28=?B9Z{fh*l91qM)L( zq}3``3K1y=BxFFAhzL z3p?2?S)Nk7TC23-(Z zPYsRzh^^XRY^Ex6V3no#?sB)i%iS{DE>6W=PTKf+q0~G%#BR;k)9g2Ye`KS~w0TkT zvhxof^zFOm*0bQ9YYRP9oRDKLjjD~j5Hg$hy6d!T;GwAz(m9YBgkUS}+rB4QiC{FF zb?Q-IHs#y&>}%@4zZpAg0{0I7V;3=}f2M{ISrO`{&3%48V7l9+FYJg-hUn|5U<_WS`Mf z5K;*nl-xJ4$PT&GOjwIp_G7>69|5bO4+8MQ5m9A`gLvg&DJ3$ISKol6T=32`$(c z5OM-CBtrUZHZ&WR`}&X5e$_M;>IcOfLHTaw76@z3k2~*?XA3fm} zGS}o3EnFwEA}X}SHNHo82oWdDY-4{yK1;BkAar)H^~ATfOM24a{t&X~-|^d?ms;Pe zv>RyJeuOyofQ+t#AryHStc26(_j?0&^f_STJQgw|R8L5MeE>V^rroaEA{l?ki#FS@ zsuCo3S6R=U{ck(3WD~g=+dQQAlEYbyo6;@Adtsd?k`nM1Obh%5i@eK z`=3C>3x(+JzeTCp^bsB_C!5~PGgW#|R&Y1s8iYGTA!Q|--bdVgQM0W@+qjSt|(oO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ruAFa-T2_MWB(88pSbM+ literal 0 HcmV?d00001 diff --git a/build.Dockerfile b/build.Dockerfile index 8ec0fc7..2521d83 100644 --- a/build.Dockerfile +++ b/build.Dockerfile @@ -8,21 +8,27 @@ RUN rustup target add x86_64-pc-windows-msvc && \ rustup target add x86_64-apple-darwin && \ rustup target add aarch64-apple-darwin && \ apt-get update && \ - apt-get install -y clang lld libc6-dev libasound2-dev libudev-dev genisoimage && \ - cargo install cargo-bundle xwin + apt-get install -y clang-19 lld-19 libc6-dev libasound2-dev libudev-dev genisoimage mingw-w64 && \ + cargo install cargo-bundle xwin && \ + xwin --accept-license splat --output xwin && \ + rm -rf .xwin-cache && \ + ln -s $(which clang-19) /usr/bin/clang && \ + ln -s $(which clang++-19) /usr/bin/clang++ COPY --from=osxcross /osxcross /osxcross -RUN xwin --accept-license splat --output xwin && rm -rf .xwin-cache + ENV PATH="/osxcross/bin:$PATH" \ LD_LIBRARY_PATH="/osxcross/lib" \ - CC="clang" CXX="clang++" AR="llvm-ar-14" \ + CC="clang-19" CXX="clang++-19" AR="llvm-ar-19" \ CC_x86_64-apple-darwin="o64-clang" \ CXX_x86_64-apple-darwin="o64-clang++" \ CC_aarch64-apple-darwin="oa64-clang" \ CXX_aarch64-apple-darwin="o6a4-clang++" \ - CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER="lld-link" \ + CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER="lld-link-19" \ CARGO_TARGET_X86_64_APPLE_DARWIN_LINKER="o64-clang" \ - CARGO_TARGET_X86_64_APPLE_DARWIN_AR="llvm-ar-14" \ + CARGO_TARGET_X86_64_APPLE_DARWIN_AR="llvm-ar-19" \ CARGO_TARGET_AARCH64_APPLE_DARWIN_LINKER="oa64-clang" \ - CARGO_TARGET_AARCH64_APPLE_DARWIN_AR="llvm-ar-14" \ + CARGO_TARGET_AARCH64_APPLE_DARWIN_AR="llvm-ar-19" \ + CROSS_COMPILE="setting-this-to-silence-a-warning-" \ + RC_PATH="llvm-rc-19" \ RUSTFLAGS="-Lnative=/xwin/crt/lib/x86_64 -Lnative=/xwin/sdk/lib/um/x86_64 -Lnative=/xwin/sdk/lib/ucrt/x86_64" \ MACOSX_DEPLOYMENT_TARGET="14.5" diff --git a/build.rs b/build.rs index ab23bf9..6335468 100644 --- a/build.rs +++ b/build.rs @@ -1,6 +1,12 @@ -use std::path::Path; +use std::{error::Error, path::Path}; + +fn main() -> Result<(), Box> { + if std::env::var("CARGO_CFG_TARGET_OS")? == "windows" { + let mut res = winresource::WindowsResource::new(); + res.set_icon("assets/lemur.ico"); + res.compile()?; + } -fn main() { println!("cargo::rerun-if-changed=shrooms-vb-core"); cc::Build::new() .include(Path::new("shrooms-vb-core/core")) @@ -11,4 +17,6 @@ fn main() { .define("VB_DIV_GENERIC", None) .file(Path::new("shrooms-vb-core/core/vb.c")) .compile("vb"); + + Ok(()) }