Updater: show update dialog instead of forcing updates (#1184)

This commit is contained in:
V
2025-10-19 00:58:48 +00:00
committed by GitHub
parent eb3dae897d
commit 9f0af48355
19 changed files with 492 additions and 69 deletions
+11 -3
View File
@@ -27,9 +27,8 @@ export const enum IpcEvents {
GET_VENCORD_DIR = "VCD_GET_VENCORD_DIR",
SELECT_VENCORD_DIR = "VCD_SELECT_VENCORD_DIR",
UPDATER_GET_DATA = "VCD_UPDATER_GET_DATA",
UPDATER_DOWNLOAD = "VCD_UPDATER_DOWNLOAD",
UPDATE_IGNORE = "VCD_UPDATE_IGNORE",
UPDATER_IS_OUTDATED = "VCD_UPDATER_IS_OUTDATED",
UPDATER_OPEN = "VCD_UPDATER_OPEN",
SPELLCHECK_GET_AVAILABLE_LANGUAGES = "VCD_SPELLCHECK_GET_AVAILABLE_LANGUAGES",
SPELLCHECK_RESULT = "VCD_SPELLCHECK_RESULT",
@@ -62,6 +61,15 @@ export const enum IpcEvents {
CHOOSE_USER_ASSET = "VCD_CHOOSE_USER_ASSET"
}
export const enum UpdaterIpcEvents {
GET_DATA = "VCD_UPDATER_GET_DATA",
INSTALL = "VCD_UPDATER_INSTALL",
DOWNLOAD_PROGRESS = "VCD_UPDATER_DOWNLOAD_PROGRESS",
ERROR = "VCD_UPDATER_ERROR",
SNOOZE_UPDATE = "VCD_UPDATER_SNOOZE_UPDATE",
IGNORE_UPDATE = "VCD_UPDATER_IGNORE_UPDATE"
}
export const enum IpcCommands {
RPC_ACTIVITY = "rpc:activity",
RPC_INVITE = "rpc:invite",
+5
View File
@@ -58,4 +58,9 @@ export interface State {
linuxAutoStartEnabled?: boolean;
vencordDir?: string;
updater?: {
ignoredVersion?: string;
snoozeUntil?: number;
};
}
+12
View File
@@ -0,0 +1,12 @@
/*
* Vesktop, a desktop app aiming to give you a snappier Discord Experience
* Copyright (c) 2025 Vendicated and Vesktop contributors
* SPDX-License-Identifier: GPL-3.0-or-later
*/
export const enum Millis {
SECOND = 1000,
MINUTE = 60 * SECOND,
HOUR = 60 * MINUTE,
DAY = 24 * HOUR
}