-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathMac-Command-Setup.sh
More file actions
23 lines (21 loc) · 854 Bytes
/
Mac-Command-Setup.sh
File metadata and controls
23 lines (21 loc) · 854 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# ADB Install.sh
echo "This will install ADB and Fastboot on your computer."
echo "Root Permissions required. Please type your password."
sudo cd ~ #Gives Superuser permissions
cd "`dirname "$0"`" #CDs to script directory
echo "Changed directory to `pwd`" #Informs user of path change
echo "Moving ADB"
sudo mv Mac/adb_Mac /usr/bin/adb #Moves adb
echo "ADB Moved to /usr/bin/adb"
echo "moving Fastboot"
sudo mv Mac/fastboot_Mac /usr/bin/fastboot #Moves Fastboot
echo "Fastboot moved to /usr/bin/fastboot"
echo "You may now run Android Debug Bridge and Fastboot commands"
echo "Adding appium to /usr/bin/appium"
sudo ln -s /path/to/appium.js /usr/bin/appium
echo "Adding node to /usr/bin/node"
sudo ln -s /usr/local/bin/node /usr/bin/node
echo "Adding npm to /usr/bin/npm"
sudo ln -s /usr/local/bin/npm /usr/bin/npm
echo "Have a nice day."