You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Detected file "Contents/Resources/app-server/Crypto/Cipher/_ARC4.abi3.so" that's the same in both x64 and arm64 builds and not covered by the x64ArchFiles rule: "undefined"
#3125
Closed
3 tasks done
navdeepm20 opened this issue
Dec 29, 2022
· 4 comments
I agree to follow the code of conduct that this project uses.
I have searched the issue tracker for a bug that matches the one I want to file, without success.
Electron Forge version
6.0.4
Electron version
v21.2.3
Operating system
Windows 11 - version 10.0.22621 Build 22621
Last known working Electron Forge version
No response
Expected behavior
I am creating a universal build for max os. I have a fast API server running with electron and copying it into the resources directory by adding configs in pakagerConfig in forge.config.js.
Building individually for the x64 and arm64 works fine but when I pack it for universal using the command.
electron-forge package --arch universal
It should create the universal build for osx.
Actual behavior
I am creating a universal build for max os. I have a fast API server running with electron and copying it into the resources directory by adding configs in pakagerConfig in forge.config.js.
Building individually for the x64 and arm64 works fine but when I pack it for universal using the command.
electron-forge package --arch universal
It throws this error -
Error: Detected file "Contents/Resources/app-server/Crypto/Cipher/_ARC4.abi3.so" that's the same in both x64 and arm64 builds and not covered by the x64ArchFiles rule: "undefined"
This error happens when the same x64 binaries are present in both the x64 and arm64 versions of your app.
I think you would need to set up the x64ArchFiles configuration option for @electron/universal like this:
// forge.config.js{packagerConfig: {osxUniversal: {// config options for `@electron/universal`x64ArchFiles: '**/_ARC4.abi3.so'// replace with any relevant glob pattern}}}
Specifically you probably want these to be different between your builds. You could Allowlist it but your arm64 build should probably have an arm64 version of this file. Otherwise it may not run correctly on M1 hardware
Pre-flight checklist
Electron Forge version
6.0.4
Electron version
v21.2.3
Operating system
Windows 11 - version 10.0.22621 Build 22621
Last known working Electron Forge version
No response
Expected behavior
I am creating a universal build for max os. I have a fast API server running with electron and copying it into the resources directory by adding configs in pakagerConfig in forge.config.js.
Building individually for the x64 and arm64 works fine but when I pack it for universal using the command.
It should create the universal build for osx.
Actual behavior
I am creating a universal build for max os. I have a fast API server running with electron and copying it into the resources directory by adding configs in pakagerConfig in forge.config.js.
Building individually for the x64 and arm64 works fine but when I pack it for universal using the command.
It throws this error -
Steps to reproduce
Command for packaging universal -
forge.config.js
Additional information
No response
The text was updated successfully, but these errors were encountered: