macOS app: force native arm64 uvicorn on Apple Silicon
This commit is contained in:
parent
34c81e5b16
commit
537b4bcff7
1 changed files with 5 additions and 1 deletions
|
|
@ -119,7 +119,11 @@ fi
|
||||||
|
|
||||||
notify "Starting…"
|
notify "Starting…"
|
||||||
cd "$INSTALL_DIR" || die_gui "Install folder not found: $INSTALL_DIR"
|
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=$!
|
SERVER_PID=$!
|
||||||
|
|
||||||
# Quitting the app stops the server it started.
|
# Quitting the app stops the server it started.
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue