Skip to content

Commit ac7da5d

Browse files
committed
Improve desktop update checks
1 parent 8cd0af8 commit ac7da5d

6 files changed

Lines changed: 26 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 1.0.2 - 2026-04-18
4+
5+
### Fixed
6+
7+
- Packaged desktop builds now automatically check for updates shortly after startup.
8+
- The update status text now makes the idle manual check state visible instead of silently showing only the current version.
9+
310
## 1.0.1 - 2026-04-18
411

512
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</p>
1212

1313
<p align="center">
14-
<a href="https://github.com/FaulMit/rigscope/releases/latest"><img alt="Latest release" src="https://img.shields.io/badge/release-v1.0.1-54d6ff?style=for-the-badge"></a>
14+
<a href="https://github.com/FaulMit/rigscope/releases/latest"><img alt="Latest release" src="https://img.shields.io/badge/release-v1.0.2-54d6ff?style=for-the-badge"></a>
1515
<a href="https://github.com/FaulMit/rigscope/actions/workflows/release.yml"><img alt="Release builds" src="https://img.shields.io/badge/builds-passing-8dff9f?style=for-the-badge"></a>
1616
<img alt="Platforms" src="https://img.shields.io/badge/Windows%20%7C%20Linux%20%7C%20macOS-111?style=for-the-badge">
1717
<img alt="Local first" src="https://img.shields.io/badge/local--first-127.0.0.1-54d6ff?style=for-the-badge">

electron/updates.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function createUpdateController() {
1919
autoUpdater.autoInstallOnAppQuit = true;
2020

2121
const merge = (patch) => Object.assign(state, patch);
22+
const isBusy = () => ["checking", "downloading", "installing"].includes(state.status);
2223

2324
autoUpdater.on("checking-for-update", () => merge({
2425
status: "checking",
@@ -67,12 +68,13 @@ function createUpdateController() {
6768
}
6869
};
6970

70-
return {
71+
const controller = {
7172
status() {
7273
return { ...state };
7374
},
7475
async check() {
7576
ensureSupported();
77+
if (isBusy()) return { ...state };
7678
await autoUpdater.checkForUpdates();
7779
return { ...state };
7880
},
@@ -97,6 +99,17 @@ function createUpdateController() {
9799
return { ...state };
98100
}
99101
};
102+
103+
if (state.supported) {
104+
setTimeout(() => {
105+
controller.check().catch((error) => merge({
106+
status: "error",
107+
error: error.message || String(error)
108+
}));
109+
}, 2500).unref();
110+
}
111+
112+
return controller;
100113
}
101114

102115
module.exports = { createUpdateController };

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rigscope",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"private": true,
55
"description": "Cross-platform local hardware inventory, diagnostics, benchmark, and stress-test dashboard.",
66
"main": "electron/main.js",

public/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ function renderUpdateStatus() {
12671267
const progress = update.progress?.percent !== undefined ? ` ${update.progress.percent}%` : "";
12681268
const labels = {
12691269
unavailable: "desktop only",
1270-
idle: `v${update.currentVersion || "-"}`,
1270+
idle: `v${update.currentVersion || "-"} · check`,
12711271
checking: "checking...",
12721272
current: `current v${update.currentVersion || "-"}`,
12731273
available: `update${version}`,

0 commit comments

Comments
 (0)