Skip to content

feat: add Electron app version constraint flags for live update bundles#185

Open
robingenz wants to merge 1 commit into
mainfrom
feat/electron-version-constraint-flags
Open

feat: add Electron app version constraint flags for live update bundles#185
robingenz wants to merge 1 commit into
mainfrom
feat/electron-version-constraint-flags

Conversation

@robingenz

@robingenz robingenz commented Jul 13, 2026

Copy link
Copy Markdown
Member

What

Adds three optional flags to apps:liveupdates:upload and apps:liveupdates:register (and, for consistency, to the deprecated apps:bundles:create/update commands), mirroring the existing Android/iOS version-constraint flags:

  • --electron-eqeqElectronAppVersionCode
  • --electron-minminElectronAppVersionCode
  • --electron-maxmaxElectronAppVersionCode

The values are Electron app versions as returned by app.getVersion() (semver-style strings, validated server-side like the iOS fields). Backend support lands in capawesome-team/cloud-api-worker#695.

Tests

  • npm run build, npm run test (201 tests), npm run lint — all green.
  • No client-side validation added, matching the existing Android/iOS flags (server-side only).

Related PRs

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 13, 2026 11:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Electron app version constraint support to the Live Updates CLI flows by introducing three new optional flags and wiring them through to the bundle create DTO fields expected by the backend.

Changes:

  • Add --electron-min, --electron-max, and --electron-eq options to apps:liveupdates:upload and apps:liveupdates:register.
  • Extend the bundle DTO types to include minElectronAppVersionCode / maxElectronAppVersionCode / eqElectronAppVersionCode.
  • Add the same Electron flags to the deprecated apps:bundles:create and apps:bundles:update commands for consistency.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/types/app-bundle.ts Adds Electron version constraint fields to the Create/Update bundle DTO interfaces.
src/commands/apps/liveupdates/upload.ts Introduces Electron constraint flags and forwards them in the bundle creation request payload.
src/commands/apps/liveupdates/register.ts Introduces Electron constraint flags and forwards them in the bundle registration request payload.
src/commands/apps/bundles/create.ts Adds Electron constraint flags to the deprecated create command’s options for parity.
src/commands/apps/bundles/update.ts Adds Electron constraint flags to the deprecated update command’s options for parity.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +86 to +90
electronMax: z
.string()
.optional()
.describe('The maximum Electron app version (`app.getVersion()`) that the bundle supports.'),
electronMin: z
Comment on lines +63 to +67
electronMax: z
.string()
.optional()
.describe('The maximum Electron app version (`app.getVersion()`) that the bundle supports.'),
electronMin: z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants