ubuntu16安装微信开发者工具

安装wine

  • 开启 32 bit 架构支持(使用的是 64 位系统,则执行这一步)
sudo dpkg --add-architecture i386
  • 仓库增加和更新
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
sudo apt-get update
  • 安装
sudo apt-get install --install-recommends winehq-stable

添加解析 Windows 的 exe 的 binfmt 配置

  • 编辑usr/share/binfmts/wine,添加以下内容
package wine
interpreter /usr/bin/wine
magic MZ
  • 更新配置
sudo apt-get install binfmt-support
sudo update-binfmts --import wine

安装开发者工具

  • 检出项目
git clone https://github.com/cytle/wechat_web_devtools.git
  • 安装并运行
./bin/wxdt install
./bin/wxdt

PS 检出项目比较慢的话,可以使用以下命令

git config --global http.postBuffer 524288000
git clone --depth=1 https://github.com/cytle/wechat_web_devtools.git

以上参考自

  • https://github.com/cytle/wechat_web_devtools

你可能感兴趣的:(ubuntu16安装微信开发者工具)