balena-io-modules / drivelist

List all connected drives in your computer, in all major operating systems
Apache License 2.0
238 stars 90 forks source link

Drivelist missing MacOS Arm64 bin folder #435

Open javierguzman opened 1 year ago

javierguzman commented 1 year ago

Hello all,

I am creating a MacOS universal build with Electron Forge. The app uses drivelist and when I try to run it on my M1 I get the error:

Error: dlopen(/Applications/Bazecor.app/Contents/Resources/app/.webpack/main/native_modules/build/Release/drivelist.node, 0x0001): tried: '/Applications/Bazecor.app/Contents/Resources/app/.webpack/main/native_modules/build/Release/drivelist.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Bazecor.app/Contents/Resources/app/.webpack/main/native_modules/build/Release/drivelist.node' (no such file), '/Applications/Bazecor.app

So basically it wants the arm64 stuff. I have taken a look at the drivelist bin folder within node_modules and it has a darwin-universal and darwin-intel folders, however, it is missing one for arm64.

I have taken at other libraries related to hardware like "usb" and they have 3 folders, universal, intel and arm64.

Is there a reason for this folder to be missing? If there is a reason, what could I do to make this work?

I would appreciate any help or hint.

Thank you in advance and regards,

gino8080 commented 6 months ago

same error

remloyal commented 3 months ago

Is there a solution?