@@ -2097,8 +2097,8 @@ device_ipwndfu() {
20972097 rm -rf ../saved/ipwndfu-*
20982098 fi
20992099 # create a lib symlink in the home directory for macos, needed by ipwndfu/pyusb
2100- # no need to do this for homebrew x86_64 since /usr/local/lib is being checked along with ~/lib
2101- if [[ $platform == " macos" && ! -e " $HOME /lib/libusb-1.0.dylib " ]]; then
2100+ # no need to do this for homebrew x86_64 since /usr/local/lib is being checked along with ~/lib, but lets do the symlink anyway
2101+ if [[ $platform == " macos" ]]; then
21022102 if [[ -e " $HOME /lib" && -e " $HOME /lib.bak" ]]; then
21032103 rm -rf " $HOME /lib"
21042104 elif [[ -e " $HOME /lib" ]]; then
@@ -2111,6 +2111,11 @@ device_ipwndfu() {
21112111 elif [[ -e /opt/homebrew/lib/libusb-1.0.dylib ]]; then
21122112 log " Detected libusb installed via Homebrew (arm64)"
21132113 ln -sf /opt/homebrew/lib " $HOME /lib"
2114+ elif [[ -e /usr/local/lib/libusb-1.0.dylib ]]; then
2115+ log " Detected libusb installed via Homebrew (x86_64)"
2116+ ln -sf /usr/local/lib " $HOME /lib"
2117+ else
2118+ warn " No libusb detected. ipwndfu might fail especially on arm64 (Apple Silicon) devices."
21142119 fi
21152120 fi
21162121
@@ -7078,7 +7083,7 @@ menu_ipa_browse() {
70787083 menu_zenity_check
70797084 newpath=" $( $zenity --file-selection --multiple --file-filter=' IPA | *.ipa' --title=" Select IPA file(s)" ) "
70807085 fi
7081- [[ -z " $newpath " ]] && read -p " $( input " Enter path to IPA file (or press Ctrl+C to cancel): " ) " newpath
7086+ [[ -z " $newpath " ]] && read -p " $( input " Enter path to IPA file (or press Enter/Return or Ctrl+C to cancel): " ) " newpath
70827087 ipa_path=" $newpath "
70837088}
70847089
@@ -8038,7 +8043,7 @@ menu_logo_browse() {
80388043 menu_zenity_check
80398044 newpath=" $( $zenity --file-selection --file-filter=' PNG | *.png' --title=" Select $1 image file" ) "
80408045 fi
8041- [[ ! -s " $newpath " ]] && read -p " $( input " Enter path to $1 image file (or press Ctrl+C to cancel): " ) " newpath
8046+ [[ ! -s " $newpath " ]] && read -p " $( input " Enter path to $1 image file (or press Enter/Return or Ctrl+C to cancel): " ) " newpath
80428047 [[ ! -s " $newpath " ]] && return
80438048 log " Selected $1 image file: $newpath "
80448049 case $1 in
@@ -8329,7 +8334,7 @@ menu_shshdump_browse() {
83298334 menu_zenity_check
83308335 newpath=" $( $zenity --file-selection --file-filter=' Raw Dump | *.dump *.raw' --title=" Select Raw Dump" ) "
83318336 fi
8332- [[ ! -s " $newpath " ]] && read -p " $( input " Enter path to raw dump file (or press Ctrl+C to cancel): " ) " newpath
8337+ [[ ! -s " $newpath " ]] && read -p " $( input " Enter path to raw dump file (or press Enter/Return or Ctrl+C to cancel): " ) " newpath
83338338 [[ ! -s " $newpath " ]] && return
83348339 log " Selected raw dump file: $newpath "
83358340 shsh_path=" $newpath "
@@ -8982,7 +8987,6 @@ device_dumprd() {
89828987 fi
89838988 mv activation.tar activation-$device_ecid .tar
89848989 if [[ -s $dump /activation-$device_ecid .tar ]]; then
8985- read -p " $( input " Activation records dump exists in $dump /activation-$device_ecid .tar. Overwrite? (y/N) " ) " opt
89868990 select_yesno " Activation records dump exists in $dump /activation-$device_ecid .tar. Overwrite?" 0
89878991 if [[ $? == 1 ]]; then
89888992 log " Deleting existing dumped activation"
0 commit comments