Some minor fixes
This commit is contained in:
parent
04e42e755f
commit
d7b4b3b3c0
3
main.ts
3
main.ts
|
@ -26,6 +26,9 @@ process.on('uncaughtException', err => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/* We've to do this since we're removing all the bloat locales */
|
||||||
|
app.commandLine.appendSwitch('lang', 'en-US');
|
||||||
|
|
||||||
const is_electron_run = process.argv[0].endsWith("electron") || process.argv[0].endsWith("electron.exe");
|
const is_electron_run = process.argv[0].endsWith("electron") || process.argv[0].endsWith("electron.exe");
|
||||||
const process_arguments = is_electron_run ? process.argv.slice(2) : process.argv.slice(1);
|
const process_arguments = is_electron_run ? process.argv.slice(2) : process.argv.slice(1);
|
||||||
if(process_arguments.length > 0 && process_arguments[0] === "crash-handler") {
|
if(process_arguments.length > 0 && process_arguments[0] === "crash-handler") {
|
||||||
|
|
|
@ -363,6 +363,7 @@ async function createUpdateInstallConfig(sourceRoot: string, targetRoot: string)
|
||||||
result["backup-directory"] = path.join(data.dir, data.name + "_backup");
|
result["backup-directory"] = path.join(data.dir, data.name + "_backup");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
result["permission-test-directory"] = targetRoot;
|
||||||
result.callback_file = app.getPath("exe");
|
result.callback_file = app.getPath("exe");
|
||||||
result.callback_argument_fail = "--no-single-instance --update-failed-new=";
|
result.callback_argument_fail = "--no-single-instance --update-failed-new=";
|
||||||
result.callback_argument_success = "--no-single-instance --update-succeed-new=";
|
result.callback_argument_success = "--no-single-instance --update-succeed-new=";
|
||||||
|
|
|
@ -22,7 +22,6 @@ import {
|
||||||
initializeAppUpdater
|
initializeAppUpdater
|
||||||
} from "../app-updater";
|
} from "../app-updater";
|
||||||
import * as app_updater from "../app-updater";
|
import * as app_updater from "../app-updater";
|
||||||
import {referenceApp} from "../AppInstance";
|
|
||||||
|
|
||||||
export async function execute() {
|
export async function execute() {
|
||||||
console.log("Main app executed!");
|
console.log("Main app executed!");
|
||||||
|
@ -103,7 +102,7 @@ export async function execute() {
|
||||||
throw "missing ui entry point";
|
throw "missing ui entry point";
|
||||||
}
|
}
|
||||||
|
|
||||||
setAppLoaderStatus("Starting client", 100);
|
setAppLoaderStatus("Starting client", 1);
|
||||||
await showMainWindow(uiEntryPoint);
|
await showMainWindow(uiEntryPoint);
|
||||||
hideAppLoaderWindow();
|
hideAppLoaderWindow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ const setStatusText = (text: string) => {
|
||||||
|
|
||||||
const setProgressIndicator = (value: number) => {
|
const setProgressIndicator = (value: number) => {
|
||||||
if(progressIndicator) {
|
if(progressIndicator) {
|
||||||
progressIndicator.style.width = (value * 100) + "%";
|
progressIndicator.style.width = Math.min(value * 100, 100) + "%";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue