1 、步驟: 安裝git、wine-> clone 下來 -> 移動 -> 執行命令安裝(此步還需要下載)
開始: 安裝git :sudo apt-get install git
安裝wine: 點擊查看
后續步驟:(就按流程走就行了):https://gitee.com/huamian/wechat_web_devtools#https://wiki.winehq.org/Ubuntu
END
2、除此你還可能會遇到的問題:
1) wcc
和 wcsc
編譯錯誤 /root/.config/wechat_web_devtools/WeappVendor/wcc.exe: 3: Syntax error: word unexpected (expecting ")")
執行
sudo apt-get install wine-binfmt sudo update-binfmts --import /usr/share/binfmts/wine
2) ./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
3)wine: /home/cpr/.wine is not owned by you
https://blog.csdn.net/s11show_163/article/details/109479320 (博主:sudo chown root:root -R ~/.wine )