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
{{ message }}
Repository navigation
singleArchFiles minimatch doesn't work for files in .webpack folder #75
By default, Webpack puts its files in a folder called .webpack. Then Electron Forge bundles these files into your app package.
However, without the "dot" option, minimatch ignores any files in this "hidden" directory. This means I get errors like the following:
[FAILED] Detected unique file ".webpack/main/index-x64.jsc" in "/var/folders/y2/m0k2q_mn2_jb9tm37k1wds1r0000gn/T/electron-universal-NzIpvm/Tmp.app/Contents/Resources/app.asar" not covered by allowList rule: "**/*.jsc"
I believe this can be fixed by adding dot: true to the minimatch options in checkSingleArch() function in asar-utils.ts.
I've solved my error by switching my rule from **/*.jsc to *.jsc which works because matchBase is enabled in checkSingleArch(). But the above still feels like a bug.
I think that'd be functionally identical to {.*,*}/**/*.jsc with dot: false as well. I personally would prefer to keep dot: false since it's the default for minimatch.
Thanks for the report. The repo no longer uses minimatch and now matches via Node path.matchesGlob, which matches dotfiles by default, so the proposed fix no longer applies. Please reopen if you still hit this on a current version.
Activity
jjeff commentedon Jul 25, 2023
I've solved my error by switching my rule from
**/*.jscto*.jscwhich works becausematchBaseis enabled incheckSingleArch(). But the above still feels like a bug.erickzhao commentedon Jun 13, 2024
I think that'd be functionally identical to
{.*,*}/**/*.jscwithdot: falseas well. I personally would prefer to keepdot: falsesince it's the default forminimatch.MarshallOfSound commentedon Jun 27, 2026
Thanks for the report. The repo no longer uses minimatch and now matches via Node path.matchesGlob, which matches dotfiles by default, so the proposed fix no longer applies. Please reopen if you still hit this on a current version.