From 85854fdbb5aaf8d8d55d4069a56914da93bebed6 Mon Sep 17 00:00:00 2001 From: Bruno Rocha Date: Sun, 3 Nov 2024 19:48:34 +0100 Subject: [PATCH] Update macOS instructions --- Readme.md | 13 +++++++++---- superbird_device.py | 11 ++++++----- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/Readme.md b/Readme.md index 9c44769..e1d5624 100644 --- a/Readme.md +++ b/Readme.md @@ -54,12 +54,17 @@ and is missing `bulkcmd` functionality. ### macOS Tested on `aarch64` and `x86_64` -On macOS, you must install `python3` and `libusb` from homebrew, and execute using that version of python +On macOS, you must install `libusb` from homebrew. Additionally, if you have a `aarch64` mac, you will also need to install `pyusb` from the master branch as you'll need a workaround that is not present is the current pypy package. + +Tested with python `3.13.0`, installed via [pyenv](https://github.com/pyenv/pyenv). + ```bash -brew install python3 libusb -/opt/homebrew/bin/python3 -m pip install git+https://github.com/superna9999/pyamlboot -/opt/homebrew/bin/python3 superbird_tool.py --find_device +brew install libusb +python3 -m pip install git+https://github.com/pyusb/pyusb +python3 -m pip install git+https://github.com/superna9999/pyamlboot +python3 superbird_tool.py --find_device ``` + `root` is not needed on macOS ### Linux diff --git a/superbird_device.py b/superbird_device.py index 7c91466..2ac435a 100644 --- a/superbird_device.py +++ b/superbird_device.py @@ -22,11 +22,12 @@ """) if platform.system() == 'Darwin': print(""" - on macOS, you must install python3 and libusb from homebrew, - and execute using that version of python - brew install python3 libusb - /opt/homebrew/bin/python3 -m pip install git+https://github.com/superna9999/pyamlboot - /opt/homebrew/bin/python3 superbird_tool.py + on macOS, you must install libusb from homebrew, + and install pyusb from the master branch + brew install libusb + python3 -m pip install git+https://github.com/pyusb/pyusb + python3 -m pip install git+https://github.com/superna9999/pyamlboot + python3 superbird_tool.py root is not needed on macOS """) elif platform.system() == 'Linux':