diff --git a/main.ts b/main.ts index 35623df..e426595 100644 --- a/main.ts +++ b/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 process_arguments = is_electron_run ? process.argv.slice(2) : process.argv.slice(1); if(process_arguments.length > 0 && process_arguments[0] === "crash-handler") { diff --git a/modules/core/app-updater/index.ts b/modules/core/app-updater/index.ts index b2cb592..24e65ff 100644 --- a/modules/core/app-updater/index.ts +++ b/modules/core/app-updater/index.ts @@ -363,6 +363,7 @@ async function createUpdateInstallConfig(sourceRoot: string, targetRoot: string) result["backup-directory"] = path.join(data.dir, data.name + "_backup"); } + result["permission-test-directory"] = targetRoot; result.callback_file = app.getPath("exe"); result.callback_argument_fail = "--no-single-instance --update-failed-new="; result.callback_argument_success = "--no-single-instance --update-succeed-new="; diff --git a/modules/core/main-window/index.ts b/modules/core/main-window/index.ts index 08afe15..9deba1e 100644 --- a/modules/core/main-window/index.ts +++ b/modules/core/main-window/index.ts @@ -22,7 +22,6 @@ import { initializeAppUpdater } from "../app-updater"; import * as app_updater from "../app-updater"; -import {referenceApp} from "../AppInstance"; export async function execute() { console.log("Main app executed!"); @@ -103,7 +102,7 @@ export async function execute() { throw "missing ui entry point"; } - setAppLoaderStatus("Starting client", 100); + setAppLoaderStatus("Starting client", 1); await showMainWindow(uiEntryPoint); hideAppLoaderWindow(); } diff --git a/modules/core/windows/app-loader/renderer/index.ts b/modules/core/windows/app-loader/renderer/index.ts index 864f25f..c6a46d5 100644 --- a/modules/core/windows/app-loader/renderer/index.ts +++ b/modules/core/windows/app-loader/renderer/index.ts @@ -11,7 +11,7 @@ const setStatusText = (text: string) => { const setProgressIndicator = (value: number) => { if(progressIndicator) { - progressIndicator.style.width = (value * 100) + "%"; + progressIndicator.style.width = Math.min(value * 100, 100) + "%"; } }