mirror of
https://github.com/block/buzz.git
synced 2026-11-29 04:32:08 +00:00
chore(build): enforce Xcode 27.0 for Apple builds
Signed-off-by: Tom Brow <tomb@block.xyz>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user