diff --git a/windows-installer/Cargo.toml b/windows-installer/Cargo.toml index 85c4193ff103..5af6b492f936 100644 --- a/windows-installer/Cargo.toml +++ b/windows-installer/Cargo.toml @@ -15,7 +15,7 @@ windows-sys = { version = "0.52.0", features = ["Win32_System", "Win32_System_Li tempfile = "3.10" anyhow = "1.0" -[target.'cfg(target_os = "windows")'.build-dependencies] +[build-dependencies] winres = "0.1" anyhow = "1.0" windows-sys = { version = "0.52.0", features = ["Win32_System", "Win32_System_LibraryLoader", "Win32_System_SystemServices"] } diff --git a/windows-installer/build.rs b/windows-installer/build.rs index cab0e18402db..df3855e1096e 100644 --- a/windows-installer/build.rs +++ b/windows-installer/build.rs @@ -1,5 +1,3 @@ -#![cfg(target_os = "windows")] - use anyhow::Context; use std::{io, path::Path};