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
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
7.6.0
Electron version
33.2.1
Operating system
macOS 15.2
Last known working Electron Forge version
No response
Expected behavior
AutoUnpackNativesPlugin should ensure all native modules are added to asar.unpack, regardless of their location.
Actual behavior
Native modules located in the .webpack directory are not being unpacked because the current pattern **/*.node doesn't match files in dot-prefixed directories.
Pre-flight checklist
Electron Forge version
7.6.0
Electron version
33.2.1
Operating system
macOS 15.2
Last known working Electron Forge version
No response
Expected behavior
AutoUnpackNativesPlugin should ensure all native modules are added to asar.unpack, regardless of their location.
Actual behavior
Native modules located in the .webpack directory are not being unpacked because the current pattern
**/*.node
doesn't match files in dot-prefixed directories.Steps to reproduce
Additional information
The AutoUnpackNativesPlugin implementation needs to be updated here:
https://github.com/electron/forge/blob/main/packages/plugin/auto-unpack-natives/src/AutoUnpackNativesPlugin.ts#L26
The current glob pattern
**/*.node
should be replaced with either:**/{.**,**}/**/*.node
**/{.webpack,**}/**/*.node
to properly handle modules in hidden directories.
The text was updated successfully, but these errors were encountered: