Created
August 26, 2018 18:18
-
-
Save ameir/18c896af8232043832bd4bae5004ddd5 to your computer and use it in GitHub Desktop.
usbjtag on mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
if [[ "$USER" != "root" ]]; then | |
echo "You must run this as root. e.g. sudo $0" | |
exit 1 | |
fi | |
cd ~/Downloads | |
wget -nc http://www.usbjtag.com/filedownload/files/libusb.tar \ | |
http://www.usbjtag.com/filedownload/files/Frameworks.tar \ | |
https://www.usbjtag.com/filedownload/files/USBJTAGNT-084-Mac-X86.tar | |
mkdir -vp ~/Downloads/USBJTAGNT | |
tar xvf libusb.tar -C /usr/local/lib/ | |
tar xvf Frameworks.tar --strip=1 -C /Library/Frameworks/ | |
tar xvf USBJTAGNT-084-Mac-X86.tar -C ~/Downloads/USBJTAGNT | |
echo "Double-click on $HOME/Downloads/USBJTAGNT/USBJTAGNT or type 'open $HOME/Downloads/USBJTAGNT/USBJTAGNT'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment