@@ -36,13 +36,13 @@ ask_sudo() {
3636 return 0
3737 else
3838 echo " "
39- echo -e " \033[1;31m[MANUAL SETUP REQUIRED ]\033[0m Sudo prompt was skipped or user aborted."
40- echo " Please execute the following fragile instructions manually in a global OS terminal:"
39+ echo -e " \033[1;31m[ERROR ]\033[0m Sudo command failed or user aborted the prompt ."
40+ echo " Please execute the following instructions manually in a terminal:"
4141 echo " "
4242 echo -e " \033[1;36m$manual \033[0m"
4343 echo " "
4444 echo " Once completed, re-run this deployment."
45- emit ' {"event": "error", "stage": "platform", "message": "Manual OS setup required (sudo skipped )"}'
45+ emit ' {"event": "error", "stage": "platform", "message": "Manual OS setup required (sudo failed )"}'
4646 exit 1
4747 fi
4848}
@@ -80,16 +80,16 @@ elif [ "$PLATFORM" = "Darwin" ]; then
8080 MANUAL_MAC=" curl -sSLO https://github.com/feranick/libedgetpu/releases/download/16.0TF2.19.1-1/libedgetpu-16.0-tf2.19.1-1_MacOS_Silicon.zip
8181unzip -q -o libedgetpu-16.0-tf2.19.1-1_MacOS_Silicon.zip
8282sudo mkdir -p /usr/local/lib /opt/homebrew/lib
83- sudo cp libedgetpu.1.dylib /usr/local/lib/
84- sudo cp libedgetpu.1.dylib /opt/homebrew/lib/
83+ sudo cp libedgetpu-16.0-tf2.19.1-1_MacOS_Silicon/direct/darwin_arm64/libedgetpu .1.dylib /usr/local/lib/
84+ sudo cp libedgetpu-16.0-tf2.19.1-1_MacOS_Silicon/direct/darwin_arm64/libedgetpu .1.dylib /opt/homebrew/lib/
8585rm -rf libedgetpu*"
8686
8787 log " Downloading Apple Silicon arm64 driver payload..."
8888 TMP_DIR=$( mktemp -d)
8989 cd " $TMP_DIR "
9090 curl -sSLO https://github.com/feranick/libedgetpu/releases/download/16.0TF2.19.1-1/libedgetpu-16.0-tf2.19.1-1_MacOS_Silicon.zip
9191 unzip -q -o libedgetpu-16.0-tf2.19.1-1_MacOS_Silicon.zip
92- ask_sudo " mkdir -p /usr/local/lib /opt/homebrew/lib && cp libedgetpu.1. dylib /usr/local/lib/ && cp libedgetpu.1.dylib /opt/homebrew/lib/" " Install libedgetpu.1.dylib to /usr/local/lib and /opt/homebrew/lib" " $MANUAL_MAC "
92+ ask_sudo " mkdir -p /usr/local/lib /opt/homebrew/lib && cp libedgetpu-16.0-tf2.19.1-1_MacOS_Silicon/direct/darwin_arm64/libedgetpu.1. dylib /usr/local/lib/ && cp libedgetpu-16.0-tf2.19.1-1_MacOS_Silicon/direct/darwin_arm64/ libedgetpu.1.dylib /opt/homebrew/lib/" " Install libedgetpu.1.dylib to /usr/local/lib and /opt/homebrew/lib" " $MANUAL_MAC "
9393 cd " $SKILL_DIR "
9494 rm -rf " $TMP_DIR "
9595 else
0 commit comments