Closed theSherwood closed 2 years ago
From the logs it looks like electron-rebuild
isn't able to find the universal binary that leveldown
ships for darwin. That file is at leveldown/prebuilds/darwin-x64+arm64/node.napi.node
, while electron-rebuild
expects leveldown/prebuilds/darwin-x64/node.napi.node
.
The good news is, unless you want to build leveldown
from source, you don't need electron-rebuild
. Check if there's a way to disable that step in Electron Forge, e.g. via electronRebuildConfig.
If you do want to build from source, then https://github.com/Level/leveldown/issues/801 is getting in your way.
Thanks, @vweevers
I'm trying to package
level
withelectron
. Everything is working when I runelectron
in dev. But packaging the distributable is failing whenelectron-rebuild
runsnode-gyp
onlevel
. Are there any examples in the community of doing this? I'm aware of theelectron-demo
depo (https://github.com/Level/electron-demo) but it doesn't do any packaging.I'm getting some errors when I attempt to package up
level
. So I'm unsure of where would be the best place for this issue: here, thelevel
repo, or on anelectron
repo. If this isn't the right place, let me know. I'm pretty new to bothlevel
andelectron
. Some of this stuff is a little outside my wheelhouse.The error is:
I'm using:
macOS Catalina 10.15.7
level@7.0.1
electron@20.0.2
This is the trace I'm getting: