electron.payload_choice¶
Pure helpers used by the Electron main process to build compatible payload version lists for the tray Backend Versions submenu and for optional Choose Backend Version prompts during install/update flows.
Functions¶
orderedCompatiblePayloadVersions(payloads, compatiblePayloads)— versions from the payload index that satisfy the launcher compatibility range, newest first (same ordering as the tray menu).installableOnlyPayloadVersions(compatibleOrderedDescending, installedVersions)— compatible versions that are not yet installed locally.payloadChooserOffersMultipleVersions(compatibleOrderedDescending)—truewhen more than one compatible version exists (the optional chooser is only offered in that case).
Integration¶
- Implemented in
electron/payload_choice.ts. - Uses
electron/update_policy.tsfor compatibility checks and version ordering. - Consumed by
electron/main.tstogether withelectron/updater.ts. - Covered by
electron/payload_choice.test.js(runmake electron-test).