Ubuntu16安装微信客户端

Ubuntu16安装微信客户端

      • 开源代码
    • release版本安装:

开源代码

git clone https://github.com/geeeeeeeeek/electronic-wechat.git
# 进入项目目录
cd electronic-wechat

# 安装依赖包,成功后出现微信启动页面

npm install&& npm start 
    我在第一次安装依赖包的时候报错了,我重试一次成功了

    把它打包成一个app

    npm run build:linux

    可以在文件夹中发现多了一个dist文件夹,其实dist文件夹里面的内容和直接下载压缩包里面的内容一样

release版本安装:

  1. 下载地址 https://github.com/geeeeeeeeek/electronic-wechat/releases
  2. 创建快捷方式到菜单栏
将解压后的文件夹重命名为wechat,移动到opt目录下

我发现文件夹中没有图标,这个不要紧,可以从项目源码中assets文件夹中复制

sudo gedit /usr/share/applications/wechat.desktop

添加以下内容:

  [Desktop Entry]
     
    Name=Wechat
     
    Comment=wechat
     
    Exec=/opt/wechat/electronic-wechat
     
    Icon=/opt/wechat/icon.png
     
    Terminal=false
     
    StartupNotify=true
     
    Type=Application
     
    Categories=Application;

你可能感兴趣的:(Ubuntu系统)