fix(updater): build in temp directory, replace old launcher binary, and cleanup temp
This commit is contained in:
1 parent
0ec9f62857
commit
0a97749a1c
8 files changed
+281
-98
No files matched your search
@@ -10,7 +10,7 @@ import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Cr
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function CloseApp() {
|
||||
return $Call.ByID(3422460836);
|
||||
return $Call.ByID(1501559548);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -18,40 +18,40 @@ export function CloseApp() {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function CloseAppAfterTimeout(timeout) {
|
||||
return $Call.ByID(1705931481, timeout);
|
||||
return $Call.ByID(1916027393, timeout);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function GetCurrentLauncherVersion() {
|
||||
return $Call.ByID(3575133982);
|
||||
return $Call.ByID(1802499222);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function HideApp() {
|
||||
return $Call.ByID(88003266);
|
||||
return $Call.ByID(2987475338);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function MaximizeApp() {
|
||||
return $Call.ByID(1257306588);
|
||||
return $Call.ByID(1960157700);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function MinimizeApp() {
|
||||
return $Call.ByID(3434614194);
|
||||
return $Call.ByID(227494378);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function RestoreApp() {
|
||||
return $Call.ByID(3115625834);
|
||||
return $Call.ByID(229693554);
|
||||
}
|
||||
@@ -6,12 +6,21 @@
|
||||
// @ts-ignore: Unused imports
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @param {string} patchPath
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function ApplyDiffZiff(gamePath, patchPath) {
|
||||
return $Call.ByID(3398476317, gamePath, patchPath);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} patchPath
|
||||
* @returns {$CancellablePromise<[boolean, string, string]>}
|
||||
*/
|
||||
export function CheckTypeHDiff(patchPath) {
|
||||
return $Call.ByID(3717449114, patchPath);
|
||||
return $Call.ByID(2449959810, patchPath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -19,7 +28,7 @@ export function CheckTypeHDiff(patchPath) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function CutData(gamePath) {
|
||||
return $Call.ByID(2019290107, gamePath);
|
||||
return $Call.ByID(279510819, gamePath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,7 +37,7 @@ export function CutData(gamePath) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DataExtract(gamePath, patchPath) {
|
||||
return $Call.ByID(2161622254, gamePath, patchPath);
|
||||
return $Call.ByID(3151294534, gamePath, patchPath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,7 +45,7 @@ export function DataExtract(gamePath, patchPath) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DeleteFiles(gamePath) {
|
||||
return $Call.ByID(1103091613, gamePath);
|
||||
return $Call.ByID(308950549, gamePath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -44,7 +53,7 @@ export function DeleteFiles(gamePath) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function HDiffPatchData(gamePath) {
|
||||
return $Call.ByID(3944051994, gamePath);
|
||||
return $Call.ByID(4008196450, gamePath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,7 +61,7 @@ export function HDiffPatchData(gamePath) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function LDiffPatchData(gamePath) {
|
||||
return $Call.ByID(360123238, gamePath);
|
||||
return $Call.ByID(2041639182, gamePath);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -61,5 +70,5 @@ export function LDiffPatchData(gamePath) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function VersionValidate(gamePath, patchPath) {
|
||||
return $Call.ByID(2105077257, gamePath, patchPath);
|
||||
return $Call.ByID(169848129, gamePath, patchPath);
|
||||
}
|
||||
@@ -11,7 +11,7 @@ import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Cr
|
||||
* @returns {$CancellablePromise<boolean>}
|
||||
*/
|
||||
export function DirExists(path) {
|
||||
return $Call.ByID(1772289644, path);
|
||||
return $Call.ByID(4102029604, path);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -19,7 +19,7 @@ export function DirExists(path) {
|
||||
* @returns {$CancellablePromise<boolean>}
|
||||
*/
|
||||
export function FileExists(path) {
|
||||
return $Call.ByID(1782610747, path);
|
||||
return $Call.ByID(865459, path);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,7 +28,7 @@ export function FileExists(path) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function FileExistsInZip(archivePath, fileInside) {
|
||||
return $Call.ByID(2509699047, archivePath, fileInside);
|
||||
return $Call.ByID(3506095695, archivePath, fileInside);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,7 +36,14 @@ export function FileExistsInZip(archivePath, fileInside) {
|
||||
* @returns {$CancellablePromise<string>}
|
||||
*/
|
||||
export function GetDir(path) {
|
||||
return $Call.ByID(1744445742, path);
|
||||
return $Call.ByID(1567262998, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[string, string]>}
|
||||
*/
|
||||
export function GetSavedGameSelection() {
|
||||
return $Call.ByID(858061230);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -44,7 +51,7 @@ export function GetDir(path) {
|
||||
* @returns {$CancellablePromise<string>}
|
||||
*/
|
||||
export function Join(...paths) {
|
||||
return $Call.ByID(2460588289, paths);
|
||||
return $Call.ByID(3036412633, paths);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -52,7 +59,7 @@ export function Join(...paths) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function OpenFolder(path) {
|
||||
return $Call.ByID(1635714001, path);
|
||||
return $Call.ByID(1601714793, path);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,14 +67,23 @@ export function OpenFolder(path) {
|
||||
* @returns {$CancellablePromise<string>}
|
||||
*/
|
||||
export function PickFile(filter) {
|
||||
return $Call.ByID(3756474934, filter);
|
||||
return $Call.ByID(2493433102, filter);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<string>}
|
||||
*/
|
||||
export function PickFolder() {
|
||||
return $Call.ByID(3654471460);
|
||||
return $Call.ByID(1673632540);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gameDir
|
||||
* @param {string} fileName
|
||||
* @returns {$CancellablePromise<string>}
|
||||
*/
|
||||
export function ReadConfigFile(gameDir, fileName) {
|
||||
return $Call.ByID(3834168665, gameDir, fileName);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -75,7 +91,16 @@ export function PickFolder() {
|
||||
* @returns {$CancellablePromise<void>}
|
||||
*/
|
||||
export function RemoveFile(path) {
|
||||
return $Call.ByID(3206735043, path);
|
||||
return $Call.ByID(2698409755, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gamePath
|
||||
* @param {string} gameDir
|
||||
* @returns {$CancellablePromise<void>}
|
||||
*/
|
||||
export function SaveGameSelection(gamePath, gameDir) {
|
||||
return $Call.ByID(1414185756, gamePath, gameDir);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -83,7 +108,7 @@ export function RemoveFile(path) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function StartApp(path) {
|
||||
return $Call.ByID(1267568402, path);
|
||||
return $Call.ByID(2875051690, path);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -91,5 +116,15 @@ export function StartApp(path) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function StartWithConsole(path) {
|
||||
return $Call.ByID(3249271428, path);
|
||||
return $Call.ByID(3393986364, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gameDir
|
||||
* @param {string} fileName
|
||||
* @param {string} content
|
||||
* @returns {$CancellablePromise<void>}
|
||||
*/
|
||||
export function WriteConfigFile(gameDir, fileName, content) {
|
||||
return $Call.ByID(1143842060, gameDir, fileName, content);
|
||||
}
|
||||
@@ -6,12 +6,20 @@
|
||||
// @ts-ignore: Unused imports
|
||||
import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Create } from "@wailsio/runtime";
|
||||
|
||||
/**
|
||||
* @param {string} branch
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function BuildAndUpdateFromSource(branch) {
|
||||
return $Call.ByID(4215502398, branch);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} version
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DownloadProxyProgress(version) {
|
||||
return $Call.ByID(3559275334, version);
|
||||
return $Call.ByID(681315470, version);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -19,35 +27,35 @@ export function DownloadProxyProgress(version) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function DownloadServerProgress(version) {
|
||||
return $Call.ByID(1954767259, version);
|
||||
return $Call.ByID(1818966979, version);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[boolean, string, string]>}
|
||||
*/
|
||||
export function GetLatestLauncherVersion() {
|
||||
return $Call.ByID(262637602);
|
||||
return $Call.ByID(977883722);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[boolean, string, string]>}
|
||||
*/
|
||||
export function GetLatestProxyVersion() {
|
||||
return $Call.ByID(289488362);
|
||||
return $Call.ByID(2666043362);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<[boolean, string, string]>}
|
||||
*/
|
||||
export function GetLatestServerVersion() {
|
||||
return $Call.ByID(2918980975);
|
||||
return $Call.ByID(1731469511);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {$CancellablePromise<void>}
|
||||
*/
|
||||
export function UnzipServer() {
|
||||
return $Call.ByID(1126363284);
|
||||
return $Call.ByID(2625719532);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -55,5 +63,5 @@ export function UnzipServer() {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function UpdateLauncherProgress(version) {
|
||||
return $Call.ByID(97272861, version);
|
||||
return $Call.ByID(1270188021, version);
|
||||
}
|
||||
@@ -11,7 +11,16 @@ import { Call as $Call, CancellablePromise as $CancellablePromise, Create as $Cr
|
||||
* @returns {$CancellablePromise<[boolean, string, string, string]>}
|
||||
*/
|
||||
export function GetLanguage(path) {
|
||||
return $Call.ByID(3574191687, path);
|
||||
return $Call.ByID(2603098415, path);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} gameRoot
|
||||
* @param {string} packageRoot
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function InstallThaiPatch(gameRoot, packageRoot) {
|
||||
return $Call.ByID(1436799318, gameRoot, packageRoot);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -21,5 +30,5 @@ export function GetLanguage(path) {
|
||||
* @returns {$CancellablePromise<[boolean, string]>}
|
||||
*/
|
||||
export function SetLanguage(path, text, voice) {
|
||||
return $Call.ByID(2768939795, path, text, voice);
|
||||
return $Call.ByID(1811821051, path, text, voice);
|
||||
}
|
||||
Reference in new issue
Block a user