我正在package.json
中使用以下脚本来构建Electron应用程序的Linux版本:
"package-linux": "electron-packager ./build project --platform=linux --arch=x64 --overwrite --packageManager=yarn --prune=true --out=out/linux --asar --icon=build/favicon.ico",
但是,当我运行它时,它会引发以下错误:
Uncaught Exception:
Error: spawnSync /tmp/.org.chromium.Chromium.9biTvr EACCES
at exports._errnoException (util.js:1024:11)
at spawnSync (child_process.js:581:20)
at execFileSync (child_process.js:618:13)
at module.(anonymous function) (ELECTRON_ASAR.js:186:18)