/home/congwiny/Develop/SoftWare/node-v6.10.3-linux-x64/
➜ ~ ls /home/congwiny/Develop/SoftWare/node-v6.10.3-linux-x64/bin node npm
➜ ~ sudo ln -s /home/congwiny/Develop/SoftWare/node-v6.10.3-linux-x64/bin/node /usr/local/bin/node ➜ ~ sudo ln -s /home/congwiny/Develop/SoftWare/node-v6.10.3-linux-x64/bin/npm /usr/local/bin/npm
而后在命令行里查看node和npm版本:php
➜ ~ node -v v6.10.3 ➜ ~ npm -v 3.10.10
到这里,nodejs已经安装完成了。css
➜ ~ git clone https://github.com/geeeeeeeeek/electronic-wechat.git
在clone完成以后,进入electronic-wechat目录查看,这些就是安装微信的源文件了html
➜ electronic-wechat git:(master) ls assets CONTRIBUTING.md LICENSE.md README.md src CHANGELOG.md dist node_modules README_zh.md config.json ISSUE_TEMPLATE.md package.json scripts
2.npm安装微信
安装应用所需依赖, 而后运行应用➜ electronic-wechat git:(master) npm install && npm start
命令运行完成以后,就会自动打开微信,扫描二维码能够登入。node
打包应用,就能够直接使用了,也能够copy给大家的朋友们。➜ electronic-wechat git:(master) npm run build:linux
等待打包完成后,查看目录结构,发现多了一个dist目录,查看dist目录内容linux
➜ electronic-wechat git:(master) ls assets CONTRIBUTING.md LICENSE.md README.md src CHANGELOG.md dist node_modules README_zh.md config.json ISSUE_TEMPLATE.md package.json scripts
➜ electronic-wechat git:(master) ls dist electronic-wechat-linux-x64
这个electronic-wechat-linux-x64就是最后打包生成的文件。git
➜ electronic-wechat git:(master) cd dist/electronic-wechat-linux-x64 ➜ electronic-wechat-linux-x64 git:(master) ls blink_image_resources_200_percent.pak LICENSES.chromium.html content_resources_200_percent.pak locales content_shell.pak natives_blob.bin electronic-wechat resources icudtl.dat snapshot_blob.bin libffmpeg.so ui_resources_200_percent.pak libnode.so version LICENSE views_resources_200_percent.pak
运行微信程序,就ok啦:github
➜ electronic-wechat-linux-x64 git:(master) ./electronic-wechat
点击肯定后,在桌面上你就看到了一个微信的标志,双击便可运行。shell
百度云盘:
https://pan.baidu.com/s/1bo80uZHnpm