-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support setting boolean properties with -c.extraMetadata #1674
Support setting boolean properties with -c.extraMetadata #1674
Comments
19.4.0 allows you to specify |
Fixed in 19.7.0 |
Sorry for the delay. I somehow missed the previous comment. The value of the variable I want to inject depends on certain make options, so having a configuration option would not be ideal.
What was the fix? Can you point me to a commit? I checked the CHANGELOG and the git history, but couldn't find anything relevant. |
new Ajv({allErrors: true, coerceTypes: true})
|
I just tested 19.7.0, but |
|
latest release is 19.8.0
|
I upgraded to 19.8.0 and ran |
Got it. |
19.9.1 |
My particular use case is to disable auto updates on Debian and RPM packages (that we publish to Bintray repositories). Is there a better way to solve this with |
Currently, I don't see way except somehow in the runtime detect. But — in any case auto update is not supported on Linux yet and will be supported only for AppImage. And AppImage sets some special ens, so, you can detect that app is running from AppImage. |
Minor correction to @jviotti 's previous comment - we're not actually auto-updating at the moment, but checking for a newer version of the app being available on the server than is running locally, and presenting a pop-up to the user if so. But obviously if the user has installed Etcher through some package-manager (like deb or rpm) we expect them to be updating through that, and we don't want to show them a pop-up that a newer version is available for manual download.
Thanks :) |
@lurch So, use |
I need to set a boolean value using
--extraMetadata
, however it seems that this option only supports strings, therefore something like:Results in:
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:
false
,true
, or contains only numbers and coerce appropriately, however there might be cases where you really need to set something like"false"
--extraMetadataBoolean
and--extraMetadataNumber
options?The text was updated successfully, but these errors were encountered: