Skip to content

Feat/add update banner to deb package#279

Merged
egalvis27 merged 6 commits intomainfrom
feat/add-update-banner-to-deb-package
Mar 25, 2026
Merged

Feat/add update banner to deb package#279
egalvis27 merged 6 commits intomainfrom
feat/add-update-banner-to-deb-package

Conversation

@egalvis27
Copy link

What is Changed / Added


An option to receive update notifications in the app has been added when the user installs the .deb version

},
onUpdateAvailable(callback) {
const eventName = 'update-available';
const callbackWrapper = (_, info) => callback(info);
Copy link
Author

Choose a reason for hiding this comment

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

This handler is used to check at runtime whether a new version is available for updating.

@egalvis27 egalvis27 requested a review from AlexisMora March 19, 2026 15:43
import { createAuthWindow, getAuthWindow } from './windows/auth';
import configStore from './config';
import { getTray, setTrayStatus } from './tray/tray';
import { broadcastToWindows } from './windows';

Choose a reason for hiding this comment

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

'./windows' imported multiple times.

Copy link
Author

Choose a reason for hiding this comment

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

Done

Comment on lines +87 to +98
let pendingUpdateInfo: { version: string } | null = null;

async function checkForUpdates() {
if (!process.env.APPIMAGE) {
const updateInfo = await checkForUpdatesOnDeb({ currentVersion: INTERNXT_VERSION });
if (updateInfo) {
pendingUpdateInfo = updateInfo;
broadcastToWindows('update-available', updateInfo);
}
return;
}

Choose a reason for hiding this comment

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

This could go in its own file instead of main.ts, perhaps inside src/core? Dont forget to add tests

Copy link
Author

Choose a reason for hiding this comment

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

Done

@@ -0,0 +1,50 @@
import https from 'https';

Choose a reason for hiding this comment

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

Prefer node:https over https.
Check sonarcloud issues

Copy link
Author

Choose a reason for hiding this comment

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

Done

@sonarqubecloud
Copy link

@egalvis27 egalvis27 merged commit 3fb0db8 into main Mar 25, 2026
9 checks passed
@egalvis27 egalvis27 deleted the feat/add-update-banner-to-deb-package branch March 25, 2026 02:05
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