Fix workspace test build warnings

This commit is contained in:
Georg Bauer
2026-07-21 12:42:48 +02:00
parent 486a9f8019
commit 184d6e4845
4 changed files with 9 additions and 6 deletions

View File

@@ -73,6 +73,8 @@ fn main() -> Result<(), Box<dyn Error>> {
}
fn sign_app_for_dmg(workspace: &Path) -> Result<(), Box<dyn Error>> {
#[cfg(not(target_os = "macos"))]
let _ = workspace;
#[cfg(target_os = "macos")]
if env::var_os("CARGO_PACKAGER_FORMAT").as_deref() == Some(OsStr::new("dmg")) {
let target = env::var_os("CARGO_TARGET_DIR")