Open ashwin-mittal opened 1 week ago
You add the value directly in the mac
/mas
/win
/etc configuration blocks
Example doc:
https://www.electron.build/app-builder-lib.interface.macconfiguration#minimumsystemversion
@mmaietta I am asking about electron-updater
configuration here: https://www.electron.build/auto-update#minimumsystemversion.
@beyondkmp can you chime in here? How does one set the minimumSystemVersion
for the latest.yml
?
example: latest-mac.yml
version: 1.1.0
path: TestApp 1.1.0.zip
sha512: Dj51I0q8aPQ3ioaz9LMqGYujAYRbDNblAQbodDRXAMxmY6hsHqEl3F6SvhfJj5oPhcqdX1ldsgEvfMNXGUXBIw==
stagingPercentage: 10
minimumSystemVersion: 23.1.0
latest-window.yml
version: 1.1.0
path: TestApp Setup 1.1.0.exe
sha512: Dj51I0q8aPQ3ioaz9LMqGYujAYRbDNblAQbodDRXAMxmY6hsHqEl3F6SvhfJj5oPhcqdX1ldsgEvfMNXGUXBIw==
stagingPercentage: 10
minimumSystemVersion: 10.0.22631
After downloading the latest.yml file, electron-updater first compares the current system version with the minimumSystemVersion. If the current version is greater than or equal to the minimumSystemVersion, it proceeds with the upgrade. If it's less than the minimumSystemVersion, it does not perform the upgrade.
Is it possible to add the minimumSystemVersion
through the electron-builder configuration, or do I need to manually include it in the latest.yml
files? If it can be done through the configuration, could you please provide an example of how to set it up?
@beyondkmp
minimumSystemVersion
It needs to be manually added to the YAML file, as there's no configuration for it currently. I'll submit a PR later to support configurable options.
Thanks for the clarification, @beyondkmp. Looking forward to the PR that will support configurable options for minimumSystemVersion.
I see that the
updateInfo
object in electron-updater contains aminimumSystemVersion
entry, but I can't find any information on how to populate this. It was added in this feature: https://github.com/electron-userland/electron-builder/pull/8108.I have already tried adding
minimumSystemVersion
to thereleaseInfo
object inside thebuild
object, but I get an error saying the format is invalid becauseminimumSystemVersion
is not allowed in that object.I am doing manual releases to a Google Cloud bucket on both Windows and Mac. This is a great feature, but it's not useful unless I can add it to my app.