1

我知道在 mac 上使用 asar 打包电子应用程序时,使用 spawn 运行 bin 文件不起作用。为了解决这个问题,我使用 -no--asar 运行 electron-packager 并且应用程序生成进程就好了。运行安装程序后一切都死了?

electron-packager . --overwrite -no--asar --platform=darwin --arch=x64 --icon=./app/assets/icons/mac/1024.icns --prune=true --out=release-builds

该应用程序运行良好,然后:

electron-installer-dmg release-builds/simple-darwin-x64/simple.app/ simple-app

child_spawn.('./bin') 已经死了……

我讨厌macs...当然一切都可以在linux上运行 谢谢!

4

0 回答 0