From 537b4bcff7169b6dd7582cfdcac907cb144eb704 Mon Sep 17 00:00:00 2001 From: Deniz Date: Tue, 2 Jun 2026 14:56:53 +0300 Subject: [PATCH] macOS app: force native arm64 uvicorn on Apple Silicon --- build-macos-app.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-macos-app.sh b/build-macos-app.sh index 7413181..1208a1d 100755 --- a/build-macos-app.sh +++ b/build-macos-app.sh @@ -119,7 +119,11 @@ fi notify "Starting…" cd "$INSTALL_DIR" || die_gui "Install folder not found: $INSTALL_DIR" -"$UVICORN" app:app --host 127.0.0.1 --port "$PORT" >>"$LOG" 2>&1 & +if [ "$(uname -m)" = "arm64" ]; then + arch -arm64 "$UVICORN" app:app --host 127.0.0.1 --port "$PORT" >>"$LOG" 2>&1 & +else + "$UVICORN" app:app --host 127.0.0.1 --port "$PORT" >>"$LOG" 2>&1 & +fi SERVER_PID=$! # Quitting the app stops the server it started.