Skip to content

Conversation

naps62
Copy link
Member

@naps62 naps62 commented Jul 30, 2025

This is feature-gated behind the updater feature flag. We'll be testing this internally for now, and enable the flag in a future release

It only works for macos right now, because that's the only place where we have signing enabled so far. Hopefully linux appimages will soon follow

The way it works:

  • It fetches the latest.json that's already present in releases (since the previous one)
  • The new release is downloaded and installed automatically
  • The user is prompted through a toast to restart the app, which is optional. If he doesn't do it, the update will take effect after the next restart

@Copilot Copilot AI review requested due to automatic review settings July 30, 2025 15:40
@naps62 naps62 added the A-feature A new finished feature label Jul 30, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces auto-update functionality for macOS builds, replacing the existing manual version checking system with an automated update mechanism that downloads and installs updates in the background.

Key changes:

  • Replaces manual version notification system with automated updates for macOS
  • Updates event listener API to support object-based configuration with optional enabling
  • Adds new Tauri plugins for process management and updater functionality

Reviewed Changes

Copilot reviewed 10 out of 17 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
gui/src/hooks/useUpdates.tsx New hook that consolidates update logic, featuring auto-updates for macOS and manual notifications for other platforms
gui/src/hooks/useEventListener.ts Enhanced to accept object configuration with enabled flag and event parameter support
gui/src/hooks/useNoticeNewVersion.tsx Removed - functionality moved to useUpdates
gui/src/routes/home/_l.tsx Updated to use new useUpdates hook instead of useNoticeNewVersion
crates/types/src/ui_events.rs Added UpdateReady event type with version parameter
Cargo.toml Version downgrade from 1.20.2 to 1.10.2
gui/package.json Added Tauri process and updater plugin dependencies
Multiple transaction/connection files Updated useEventListener calls to new object-based API
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@naps62 naps62 merged commit 7d8d890 into main Jul 31, 2025
7 checks passed
@naps62 naps62 deleted the auto-updates branch July 31, 2025 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-feature A new finished feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant