Skip to content

Commit 3738ea1

Browse files
committed
install.sh: If running under Rosetta, switch to ARM64 mode
`bless` tries to do the Intel thing if run under Rosetta... go figure :-) Signed-off-by: Hector Martin <[email protected]>
1 parent c785fa3 commit 3738ea1

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/install.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,14 @@ python=Frameworks/Python.framework/Versions/3.9/bin/python3.9
1212
export SSL_CERT_FILE=$PWD/Frameworks/Python.framework/Versions/Current/etc/openssl/cert.pem
1313
export PATH="$PWD/bin:$PATH"
1414

15+
arch=
16+
17+
if [ $(arch) != "arm64" ]; then
18+
echo
19+
echo "You're running the installer in Intel mode under Rosetta!"
20+
echo "Don't worry, we can fix that for you. Switching to ARM64 mode..."
21+
arch="arch -arm64"
22+
fi
23+
1524
exec </dev/tty >/dev/tty 2>/dev/tty
16-
exec $python main.py "$@"
25+
exec $arch $python main.py "$@"

0 commit comments

Comments
 (0)