Closed hallkk closed 5 years ago
arch的electron好像是另外安装的? 这个问题是因为electron旧版本没有错误写到的那个方法 尝试更新electron?
arch的electron好像是另外安装的? 这个问题是因为electron旧版本没有错误写到的那个方法 尝试更新electron?
查看本地的electron版本为v2.0.12
,也是arch仓库里最新的版本
我的锅
我把方法写死了,我还以为electron是一起打包进去的?
甩锅 不是我的锅
你能查看electron版本的话那个应该是全局安装的吧 electron确实是打包进去了的,运行也应该是用一起打包的electron来运行
不清楚在arch上运行electron应用和在debian系上运行有什么区别
尝试卸掉全局安装的electron?
@amitbha 这位兄弟也是用arch的好像没有这个问题?
在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 不能运行当我没说
我是手动下载release,解压使用的,没用aur 😌
在安装目录/usr/lib/electron-wechat里面 npm install electron --save-dev本地安装electron就可以了
/opt
目录下electronic-wechat.desktop
文件 到/usr/share/applications
目录下done
Description
升级到最新版2.2.1后,无法启动
Specifications
$ electron --version
):v2.0.12
Manjaro