electron / packager

Customize and package your Electron app with OS-specific bundles (.app, .exe, etc.) via JS or CLI

Home Page:https://npm.im/@electron/packager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

asar.unpack not working with glob syntax

tripower opened this issue · comments

Electron v18
Electron Packager v15.4.0

at the moment I have in package. json this syntax
"package": "electron-packager . xxxx --asar.unpack="{package.json}"
but so all package.json files will be unpacked (my from root and all node modules) and I want only "my" one from the root
and my test with this pattern
/package.json => NOK
/{,!(node_modules)/**/}package.json => NOK
because so no file will be unpacked???

a bug?
or wrong pattern?

thx for help

greetings
Klaus

👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

or wrong pattern?

glob {} syntax doesn't work with a single item in the {}. E.g. {a} won't match, but {a,b} would match. If you write the right glob pattern it will work

i have more items inside the {}
but removed to set the focus for the not working one

so why the pattern below not work?
should be glob specific

that is with all inside

--asar.unpack=\"{**/jquery/**/*,**/node_modules/@json-editor/**/*,**/node_modules/dialog/**/*,**/jar/**/*,**/node_modules/java/**/*,**/jar/**/*,**/node_modules/winston/**/*,**/node_modules/lodash/**/*,**/node_modules/async/**/*,**/node_modules/path/**/*,**/node_modules/fs/**/*,**/jre/**/*,**/wacom/**/*,logback.xml,package.json}\"