feat: switch to git-based updates and simplify PR checks#529
Merged
idofrizler merged 2 commits intostagingfrom Apr 6, 2026
Merged
feat: switch to git-based updates and simplify PR checks#529idofrizler merged 2 commits intostagingfrom
idofrizler merged 2 commits intostagingfrom
Conversation
- Version check now fetches package.json from main branch instead of GitHub Releases API (releases will stop being published) - Update modal shows "git pull && npm run dist" command with copy-to- clipboard instead of linking to releases page - PR workflow simplified: removed packaging, artifact uploads, and Fedora build job — keeps tests, build, and bundle guardrail - Cleaned up preload bridge types and App.tsx state (removed downloadUrl, releaseUrl, releaseNotes from update check response) - Updated tests and CONTRIBUTING.md to match Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Switches Cooper from GitHub Releases-based update checking to a simpler
package.json-based approach, and simplifies PR CI since we no longer distribute packaged binaries.Changes
Version check (
src/main/main.ts)package.jsonfrommainbranch viaraw.githubusercontent.cominstead of querying the GitHub Releases APIGitHubReleaseinterface and release asset detection logicUpdate modal (
UpdateAvailableModal.tsx)git pull && npm run distcommandelectronAPI.updates.openDownloadUrlPR checks (
.github/workflows/build-pr.yml)electron-builder), artifact uploads, and Fedora build jobelectron-vite build, and bundle size guardrailCleanup
downloadUrl,releaseUrl,releaseNotesfrom update check response (preload + renderer)CONTRIBUTING.mdto reflect simplified PR checksTesting
npm test— 493 tests passnpm run build— clean buildwindow.showUpdateModal()in DevTools to preview the new modal