From 26f7375f88fcd0831b4516408db7a6f682c5db50 Mon Sep 17 00:00:00 2001 From: LukeZGD Date: Thu, 9 Sep 2021 10:20:19 +0800 Subject: [PATCH] Also detect limd and irecovery from MacPorts --- README.md | 6 ++++-- resources/depends.sh | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 355bd30..0260986 100644 --- a/README.md +++ b/README.md @@ -86,8 +86,10 @@ - **IPSW file integrity** will be verified before restoring and/or creating custom IPSW (if custom IPSW is already created, this will be skipped) - **For users having issues with missing libraries/tools:** Re-install dependencies with `./restore.sh Install` - Alternatively, delete the `libimobiledevice` folder in `resources` then run the script again -- macOS users may have to install libimobiledevice and libirecovery from [Homebrew](https://brew.sh/) with this command: `brew install libimobiledevice libirecovery` - - The script will detect this automatically and will use the Homebrew versions of the tools +- macOS users may have to install libimobiledevice and libirecovery from [Homebrew](https://brew.sh/) or [MacPorts](https://www.macports.org/) + - For Homebrew: `brew install libimobiledevice libirecovery` + - For MacPorts: `sudo port install libimobiledevice libirecovery` + - The script will detect this automatically and will use the Homebrew/MacPorts versions of the tools - **For A7 devices:** - Do not use USB-C to lightning cables as this can prevent a successful restore - ipwndfu is unfortunately very unreliable on Linux, you may have to try multiple times (Linux users may also try in a live USB) diff --git a/resources/depends.sh b/resources/depends.sh index b0638da..bff90d6 100755 --- a/resources/depends.sh +++ b/resources/depends.sh @@ -27,6 +27,9 @@ SetToolPaths() { elif [[ -e /opt/homebrew/bin/idevicedate && -e /opt/homebrew/bin/irecovery ]]; then Log "Detected libimobiledevice and libirecovery installed from Homebrew (Apple Silicon)" MPath="/opt/homebrew/bin" + elif [[ -e /opt/local/bin/idevicedate && -e /opt/local/bin/irecovery ]]; then + Log "Detected libimobiledevice and libirecovery installed from MacPorts" + MPath="/opt/local/bin" fi bspatch="/usr/bin/bspatch"