Open
Description
-
Electron-Builder Version: 23.2.0
-
Node Version: v14.17.1
-
Electron Version: 12.2.3
-
Electron Type (current, beta, nightly): current (old)
-
Target: Linux
I need to generate a package.json
with some metadata. These metadata comes in the form or _something
, and also are dynamically generated on the build process. What I ended up doing is generating the metadata during the build process, and then injecting on config.extraMetadata
(I'm using electron-builder programatically).
The trouble is that if a metadata starts with underscore, it is not carried through. For example, this config works (metadata gets carried through):
options = {
"appId": "my.app.id",
"npmRebuild": false,
"linux": {
"icon": "my/icon.png",
"category": "Development",
"synopsis": "...",
"target": [
{
"target": "appimage",
"arch": "x64"
},
]
},
"extraMetadata": {
"something": "It's Something"
}
}
But if I do change "something"
to "_something"
, it is not added to package.json
Activity