Skip to content

singleArchFiles minimatch doesn't work for files in .webpack folder #75

Open
@jjeff

Description

@jjeff

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions