1、从git上拿到文件
git clone https://github.com/cytle/wechat_web_devtools.git
2、进入文件下载相关依赖
cd wechat_web_devtools/
./bin/wxdt install
3、启动
./bin/wxdt
错误排除
./bin/wxdt install 报错失败
./nw: error while loading shared libraries: libnw.so: cannot open shared object file: No such file or directory
该错误是由 nw.js
下载失败所致. 删除缓存, 重新下载即可.
rm -rf /path/to/wechat_web_devtools/dist
rm -rf /tmp/wxdt_xsp
./bin/wxdt install
附:微信小程序的支持(wcc和wcsc编译错误)
执行下面语句,重新编译即可:
sudo apt-get install wine-binfmt
sudo update-binfmts --import /usr/share/binfmts/wine