- 下载源代码
$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- 加载
a. 直接加载export PATH=/path/to/depot_tools:$PATH
b. 加载到环境中
1.打开 sodo vi ~/.bashrc or ~/.zshrc
2.在最后一行加入:export PATH="$PATH:/Users/luchuan/Documents/Project/LIB/depot_tools"
4.source ~/.bashrc (每一次要执行depot_tools 都需要重新执行一次)
网友评论