electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

extraResourses not being packaged if path ends with glob pattern `/**/*`

Open GabrielNSD opened this issue 1 year ago • 4 comments

Hello!

After updating to version 26.0.12 (from 24.9.1) the extra resources that end with /**/* are not being packed anymore. If using, for each path, the syntax { "from": "from/path", "to": "to/path" } the directory is packed.

GabrielNSD avatar Apr 01 '25 22:04 GabrielNSD

@GabrielNSD Could you help provide a minimal reproducible demo code?

beyondkmp avatar Apr 03 '25 07:04 beyondkmp

Hi @beyondkmp ! Sorry for the delay. I’ve created a repository using the quick-start example.

You can run yarn app:dir to generate the package directory.

In the package.json, I added both file specification methods under extraResources. Note that only the second one actually copies the files.

GabrielNSD avatar Apr 23 '25 18:04 GabrielNSD

Hi @beyondkmp I just noticed that i did not link the demo code, here is it: https://github.com/GabrielNSD/electron-builder-test

GabrielNSD avatar May 23 '25 18:05 GabrielNSD

@GabrielNSD can you try 26.0.15? There was a change in migrating to a writesteam-based approach with electron/asar integration

mmaietta avatar May 23 '25 19:05 mmaietta