1. 安裝微信客戶端
首先,安裝 git 、nodejs 和 npm:
(1) git 安裝:sudo apt-get install git
(2) nodejs 和 npm 安裝:
Ubuntu環境下安裝nodejs和npm 參考:https://blog.csdn.net/wangtaoking1/article/details/78005038
然後,安裝微信客戶端:
來自:https://github.com/geeeeeeeeek/electronic-wechat
# 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
npm install && npm start
(備註:install那步時間稍微有點久.)
根據自己的操作系統選擇相應的命令打包:
npm run build:osx
npm run build:linux
npm run build:win32
npm run build:win64
這樣,點擊/home/rmw/electronic-wechat/dist/electronic-wechat-linux-x64文件夾下的這個就可以運行啦:
2. 創建快捷方式
以上的方法啓動微信有點不太方便,我們可以創建一個快捷方式
cd /usr/share/applications
sudo vim wechat.desktop
我的wechat.desktop內容:
[Desktop Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/home/rmw/electronic-wechat/dist/electronic-wechat-linux-x64/electronic-wechat
GenericName[zh_CN]=App
GenericName=App
Icon=/home/rmw/electronic-wechat/assets/icon.png
MimeType=
Name[zh_CN]=微信
Name=wechat
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=owen
注意Exec和Icon分別爲你自己的電腦裏的微信運行文件位置以及logo位置.
然後把/usr/share/applications裏的wechat圖標複製到桌面就OK啦: