chore(build): enforce Xcode 27.0 for Apple builds

Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
Tom Brow
2026-10-12 11:30:39 -07:00
parent c09730e874
commit d0a1d61533
14 changed files with 157 additions and 14 deletions

View File

@@ -31,6 +31,17 @@ function runTauri(args, options = {}) {
}
export function runTauriCommand(args) {
if (process.platform === "darwin" && ["build", "dev"].includes(args[0])) {
const check = spawnSync(
"bash",
[path.join(desktopRoot, "../scripts/check-xcode.sh")],
{
stdio: "inherit",
},
);
if (check.error) throw check.error;
if (check.status !== 0) return check.status ?? 1;
}
if (args[0] !== "build") return runTauri(args);
// Tauri runs beforeBuildCommand and then consumes frontendDist. Give the