Support setting boolean properties with -c.extraMetadata
See original GitHub issue- Version: 18.6.2
- Target: debian
I need to set a boolean value using --extraMetadata
, however it seems that this option only supports strings, therefore something like:
--extraMetadata.updates.enabled=false
Results in:
{
"updates": {
"enabled": "false"
}
}
I haven’t tested it, but I suspect the same issue applies to numbers.
Of course I can workaround this limitation from my application code, however I wonder if we could add support for values other than strings.
Some thoughts:
- We could check if the value equals
false
,true
, or contains only numbers and coerce appropriately, however there might be cases where you really need to set something like"false"
- Maybe there can be
--extraMetadataBoolean
and--extraMetadataNumber
options?
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
Common Configuration - electron-builder
extraMetadata any - Inject properties to package.json . forceCodeSigning = false Boolean - Whether to fail if the application is not signed (to...
Read more >electron-builder - npm
A complete solution to package and build a ready for distribution Electron app for MacOS, Windows and Linux with “auto update” support out ......
Read more >How to set a boolean type property in objective C class
@property (assign) BOOL locationUseBool;. Basically, if you say nonatomic, and you generate the accessors using @synthesize, then if multiple threads try to ...
Read more >Create conditional (Boolean) expressions - Microsoft Support
Understand conditional expressions · For table fields, you add your expression to the Validation Rule property of the field. · For controls on...
Read more >Boolean Properties - Salesforce Lightning Component Library
Always set the default value for a boolean public property to false . ... The parent component includes c-bool , which displays the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
9e772313e29de77f9c44eb18ab0f8726d815fd7a
@lurch So, use
process.env.APPIMAGE != null
to check that app running using AppImage.