ubuntu下安装微信客户端以及创建快捷方式

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啦:



猜你喜欢

转载自blog.csdn.net/ranmw1129/article/details/80839696