question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
timo955commented, Feb 6, 2021

9e772313e29de77f9c44eb18ab0f8726d815fd7a

0reactions
develarcommented, Jun 30, 2017

@lurch So, use process.env.APPIMAGE != null to check that app running using AppImage.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found