kooritea / electronic-wechat

:speech_balloon: A better WeChat on macOS and Linux. Built with Electron by Zhongyi Tong.
MIT License
566 stars 70 forks source link

v2.2.1启动失败 #68

Closed hallkk closed 5 years ago

hallkk commented 5 years ago

Description

升级到最新版2.2.1后,无法启动

Specifications

TypeError: app.requestSingleInstanceLock is not a function
kooritea commented 5 years ago

arch的electron好像是另外安装的? 这个问题是因为electron旧版本没有错误写到的那个方法 尝试更新electron?

hallkk commented 5 years ago

arch的electron好像是另外安装的? 这个问题是因为electron旧版本没有错误写到的那个方法 尝试更新electron?

查看本地的electron版本为v2.0.12,也是arch仓库里最新的版本

kooritea commented 5 years ago

我的锅 我把方法写死了,我还以为electron是一起打包进去的? 甩锅 不是我的锅

kooritea commented 5 years ago

你能查看electron版本的话那个应该是全局安装的吧 electron确实是打包进去了的,运行也应该是用一起打包的electron来运行

不清楚在arch上运行electron应用和在debian系上运行有什么区别

尝试卸掉全局安装的electron?

@amitbha 这位兄弟也是用arch的好像没有这个问题?

kooritea commented 5 years ago

在aur上看了一下 启动脚本

#!/bin/bash

PACKAGE_NAME="electronic-wechat"
EW_DIR="/usr/lib/$PACKAGE_NAME"

cd "$EW_DIR" || exit 1
exec /usr/bin/electron . "$@"

用的是全局安装的electron

其实直接用

/usr/lib/$PACKAGE_NAME/electron-wechat

就会使用内置的electron启动了

electron,npm,git,nodejs,python都不是运行依赖

当然如果 直接 ./electron-wechat 不能运行当我没说

amitbha commented 5 years ago

我是手动下载release,解压使用的,没用aur 😌

korbinZhang commented 5 years ago

在安装目录/usr/lib/electron-wechat里面 npm install electron --save-dev本地安装electron就可以了

hallkk commented 5 years ago
  1. 下载最新release版本,解压缩到/opt目录下
  2. 复制应用目录electronic-wechat.desktop文件 到/usr/share/applications目录下

done