赠送 brew 升级

直接升级

1
2
3
4
5
6

# check brew
brew -v
# update brew
brew update
#等待即可

github 源码升级

1
2
3
4
5
6
7
8
# 如果不行,那就切换更新源
cd " brew --repo)"
# check git remote status
git remote -v
# 换成其他的源,至于使用哪个网址建议看情况网上查
git remote set-url origin https://git.coding.net/homebrew/homebrew.git

#等待即可

安装Asar模块

1
2
3
4
5
6
7
8
9
#
#check npm
npm -V
#install asar
npm install -g asar
#解压缩asar文件
#asar extract 压缩文件 解压目录
asar extract ./app.asar ./app
#asar pack 压缩文件夹 压缩路径含文件名