微信开源代码
https://github.com/geeeeeeeeek/electronic-wechat
sudo apt-get install npm
README.md用的是npm, 但是会报错, 换成cnpm 就可以了, 用yarn,都可以, 自己想用啥用啥。
npm install -g cnpm
# Clone this repository
git clone https://github.com/geeeeeeeeek/electronic-wechat.git
# Go into the repository
cd electronic-wechat
# Install dependencies and run the app
cnpm install && npm start
npm start 有可能报 缺少库 安装即可
sudo apt-get install libgcon2-4
To pack into an app, simply type one of these(打包成APP):
cnpm run build:osx
cnpm run build:linux
cnpm run build:win32
cnpm run build:win64
注:如果报node版本4或更高说明electron版本太低, 更新一下版本。
"electron": "^4.0.5",
"electron-localshortcut": "^3.1.0",
"electron-packager": "^13.1.0",