# wechat_web_devtools-master **Repository Path**: fan_liang/wechat_web_devtools-master ## Basic Information - **Project Name**: wechat_web_devtools-master - **Description**: No description available - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-25 - **Last Updated**: 2021-01-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wechat_web_devtools-master #### 介绍 一.删除之前安装的Wine(如果安装过) 1. 删除软件及配置文件 $ sudo apt-get --purge remove wine 2. 删除没用的依赖包 $ sudo apt-get autoremove wine 3. 此时dpkg的列表中有"rc"状态的软件包,可以执行以下命令进行最后清理 $ dpkg -l |grep ^rc|awk '{print $2}' |sudo xargs dpkg -P 4. 然后删除安装包,位于/root/.wine和/home/usrname/.wine $ rm -rf /root/.wine $ rm -rf /home/usrname/.wine 二.安装WineHQ安装包 1.开启 32 bit 架构支持 $ sudo dpkg --add-architecture i386 2.下载添加仓库密钥 $ 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/ 3 添加仓库 $ sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' 4更新软件包 $ sudo apt-get update 5安装安装包 $ sudo apt install --install-recommends winehq-stable 6 查看wine版本命令 $ wine --version ''W: GPG 错误:http://dl.winehq.org/wine-builds/ubuntu xenial InRelease: 由于没有公钥,无法验证下列签名: NO_PUBKEY 76F1A20FF987672F E: 仓库 “http://dl.winehq.org/wine-builds/ubuntu xenial InRelease” 没有数字签名" 执行命令$ sudo apt-key adv --recv-keys --keyserver keyserver.Ubuntu.com F987672F 三.安装微信开发者工具 1.clone文件到本地 $ git clone https://gitee.com/fan_liang/wechat_web_devtools-master.git 2.进入文件夹 $ cd wechat_web_devtools 3自动下载最新 `nw.js` , 同时部署目录 `~/.config/wechat_web_devtools/` $ ./bin/wxdt install 4.启动 $ ./bin/wxdt 四.配置桌面快捷图标启动 1.在 /usr/share/applications/ 目录下,添加 wechat.desktop 文件。 2.在文件中添加一下内容 #!/usr/bin/env xdg-open [Desktop Entry] Encoding=UTF-8 Type=Application Categories=Development; Icon=/home/xx/Application/wechat_web_devtools/images/we_dev.png Exec=/home/xx/Application/wechat_web_devtools/bin/wxdt Name=WeChat Web develop tools Name[zh_CN]=微信Web开发工具 MimeType= 备注:Icon  Exec  为自己电脑的路径 weixin.png