我目前正在尝试制作一个 Electron-JS 应用程序并使用npx create-electron-app myApp
. 我已经设法开发出我想要的东西,并且已经使用npm start
它运行了很多次,并且效果很好。
现在我正在尝试使用npm run make
(调用electron-forge make
)构建应用程序。问题是这个命令卡在了:Preparing to Package Application for arch: x64
我已经等了一个小时,我不知道我可以尝试解决这个问题。有人有想法吗?
如果需要,这是我的系统信息(使用neofetch
命令):
eeeeeeeeeeeeeeeee boux@GB-ElemOS
eeeeeeeeeeeeeeeeeeeeeee --------------
eeeee eeeeeeeeeeee eeeee OS: elementary OS 5.1.7 Hera x86_64
eeee eeeee eee eeee Host: UX31A 1.0
eeee eeee eee eeee Kernel: 4.15.0-135-generic
eee eee eee eee Uptime: 4 hour, 9 mins
eee eee eee eee Packages: 3171
ee eee eeee eeee Shell: bash 4.4.20
ee eee eeeee eeeeee Resolution: 1920x1080
ee eee eeeee eeeee ee DE: Pantheon
eee eeee eeeeee eeeee eee WM: Mutter(Gala)
eee eeeeeeeeee eeeeee eee Theme: Elementary [GTK3]
eeeeeeeeeeeeeeeeeeeeeeee eeeee Icons: Elementary [GTK3]
eeeeeeee eeeeeeeeeeee eeee Terminal: io.elementary.t
eeeee eeeee CPU: Intel i7-3517U (4) @ 3.000GHz
eeeeeee eeeeeee GPU: Intel HD Graphics 4000
eeeeeeeeeeeeeeeee Memory: 1934MiB / 3831MiB
编辑:它不适用于我的新项目,没有任何更改。如果我跑
npx create-electron-app foo
cd foo/
npm start
应用程序正确启动。但如果我再试试
npm run make
输出是
> foo@1.0.0 make /home/boux/Projets/Electron/foo
> electron-forge make
✔ Checking your system
✔ Resolving Forge Config
We need to package your application before we can make it
⠇ Preparing to Package Application for arch: x64
它准备了包裹……永远……