UPDATE: Add self update

This commit is contained in:
2025-07-26 20:59:35 +07:00
parent 95f8ed357d
commit 461dfd93ba
28 changed files with 597 additions and 173 deletions

View File

@@ -25,20 +25,26 @@ export function DownloadServerProgress(version) {
}
/**
* @param {string} oldVersion
* @returns {Promise<[boolean, string, string]> & { cancel(): void }}
*/
export function GetLatestProxyVersion(oldVersion) {
let $resultPromise = /** @type {any} */($Call.ByID(1462362449, oldVersion));
export function GetLatestLauncherVersion() {
let $resultPromise = /** @type {any} */($Call.ByID(3191972855));
return $resultPromise;
}
/**
* @param {string} oldVersion
* @returns {Promise<[boolean, string, string]> & { cancel(): void }}
*/
export function GetLatestServerVersion(oldVersion) {
let $resultPromise = /** @type {any} */($Call.ByID(1447982978, oldVersion));
export function GetLatestProxyVersion() {
let $resultPromise = /** @type {any} */($Call.ByID(1462362449));
return $resultPromise;
}
/**
* @returns {Promise<[boolean, string, string]> & { cancel(): void }}
*/
export function GetLatestServerVersion() {
let $resultPromise = /** @type {any} */($Call.ByID(1447982978));
return $resultPromise;
}
@@ -57,3 +63,12 @@ export function UnzipServer() {
let $resultPromise = /** @type {any} */($Call.ByID(4110296071));
return $resultPromise;
}
/**
* @param {string} version
* @returns {Promise<[boolean, string]> & { cancel(): void }}
*/
export function UpdateLauncherProgress(version) {
let $resultPromise = /** @type {any} */($Call.ByID(2648938152, version));
return $resultPromise;
}