Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update native module unpack pattern to include hidden directories #3793

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

glowingjade
Copy link

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:
fixed #3792

Copy link

@nikwen nikwen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

@@ -23,7 +23,7 @@ export default class AutoUnpackNativesPlugin extends PluginBase<AutoUnpackNative
forgeConfig.packagerConfig.asar = {};
}
const existingUnpack = forgeConfig.packagerConfig.asar.unpack;
const newUnpack = '**/*.node';
const newUnpack = '**/{.webpack,**}/**/*.node';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to solve it that makes it work for all hidden directories, not just .webpack?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AutoUnpackNativesPlugin fails to unpack native modules from hidden directories
2 participants