From fd72eafc489ca14394c5694ed8229ff6d337ef01 Mon Sep 17 00:00:00 2001 From: Nigel Ihza Firdausy <106657905+Ni-zav@users.noreply.github.com> Date: Tue, 13 Oct 2026 11:02:07 +0700 Subject: [PATCH] fix(macos): bundle the CLI and resolve it from generated droplets --- crates/engine/src/automate_cmds/tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/engine/src/automate_cmds/tests.rs b/crates/engine/src/automate_cmds/tests.rs index b60dc2940e..ac9dc52213 100644 --- a/crates/engine/src/automate_cmds/tests.rs +++ b/crates/engine/src/automate_cmds/tests.rs @@ -135,6 +135,8 @@ fn droplets_are_written_and_run() { let shim = r["shim"].as_str().unwrap(); let text = std::fs::read_to_string(shim).unwrap(); assert!(text.starts_with("#!/bin/sh") && text.contains("droplet")); + assert!(text.contains("/Applications/PhotoCraft.app/Contents/MacOS/photocraft-cli")); + assert!(text.contains("${PHOTOCRAFT_CLI:-}"), "an explicit CLI path must take priority"); use std::os::unix::fs::PermissionsExt; assert_ne!(std::fs::metadata(shim).unwrap().permissions().mode() & 0o111, 0, "executable"); }