/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