Files
Ruslan KonviserandClaude Opus 5.5 0da9a5d4fb fix(desktop): fix update prompt, auto-update delay and prerelease channel
The "new version available, download it?" dialog was registered with
autoUpdater.once(), so it could appear only once per app run. Since every
check now looks up the newest release again (#10305), a release published
later in the same run got no dialog. The once() listener was also used up
when the first version was found while automatic updates were off, so no
dialog appeared in that run even after they were turned back on. The
dialog now appears once for each new version. A version the user has
already answered in this run is not offered again, including the repeat
event that follows choosing Upgrade.

Only one update dialog is shown at a time. The dialog does not open while
it or the "ready to install" prompt is still showing; the next check
offers that version again. A "ready to install" prompt for a download
that finishes while the dialog is open waits until the dialog is
answered. An error showing either dialog is now logged instead of being
left as an unhandled rejection. The OS notification and the settings
page events are unchanged.

The settings page sends automatic_update_setting as { isEnabled, delay },
but the main process read automaticUpdateDelay, and AutomaticUpdate's
delay getter threw away any delay passed in and used the stored setting.
It worked only because the settings page happens to save the setting
first. The handler now accepts both names, handled on the receiving side
so existing settings pages keep working. The loop uses the delay it was
sent, falling back to the stored delay and then 1 hour. Delays that
setInterval cannot hold are ignored, since they would make it run every
millisecond.

Turning on the prerelease channel filtered the GitHub releases down to
prereleases only, so those users were never offered a newer stable
release. On the real release list they were held at v111.44.15, or even
v102.0.1, while v111.44.48 was out. The prerelease channel now means the
newest release of either kind, still preferring the newest one that
already has this platform's update file. Stable-only users are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 01:11:01 +02:00
..
2024-12-20 08:30:49 +01:00
2024-12-20 08:30:49 +01:00
2024-12-20 08:30:49 +01:00
2024-12-20 08:30:49 +01:00
2024-12-20 08:30:49 +01:00
2024-12-20 08:30:49 +01:00
2024-12-20 08:30:49 +01:00

@gauzy/desktop-lib

This library was generated with Nx.

Building

Run yarn nx build desktop-lib to build the library.

Running unit tests

Run yarn nx test desktop-lib to execute the unit tests via Jest.

Publishing

After building your library with yarn nx build desktop-lib, go to the dist folder dist/packages/desktop-lib and run npm publish.

Installation

Install the Desktop Libs Library using your preferred package manager:

npm install @gauzy/desktop-lib
# or
yarn add @gauzy/desktop-lib