update store version (#562)

* tweak online check

* add ms store manifest
This commit is contained in:
smartfridge 2024-04-05 12:08:57 +02:00 committed by GitHub
parent c3ea6adcf8
commit 01767659da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 14 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{ {
"loading_screen_start": "Starting ArmCord…", "loading_screen_start": "Starting ArmCord…",
"loading_screen_offline": "You appear to be offline. Please connect to the Internet and try again.", "loading_screen_offline": "You appear to be offline. Restart in ",
"loading_screen_update": "A new version of ArmCord is available. Please update to the latest version.", "loading_screen_update": "A new version of ArmCord is available. Please update to the latest version.",
"setup_question1": "Welcome to the ArmCord Setup", "setup_question1": "Welcome to the ArmCord Setup",
"setup_offline": "You appear to be offline. Please connect to the internet and restart ArmCord.", "setup_offline": "You appear to be offline. Please connect to the internet and restart ArmCord.",

View file

@ -83,6 +83,12 @@
"rpm", "rpm",
"AppImage" "AppImage"
] ]
},
"appx": {
"identityName": "53758smartfrigde.ArmCord",
"publisher": "CN=EAB3A6D3-7145-4623-8176-D579F573F339",
"publisherDisplayName": "smartfrigde",
"applicationId": "smartfrigde.ArmCord"
} }
}, },
"packageManager": "pnpm@8.10.2" "packageManager": "pnpm@8.10.2"

View file

@ -28,7 +28,7 @@ import {createKeybindWindow} from "./keybindMaker/main";
export let iconPath: string; export let iconPath: string;
export let settings: any; export let settings: any;
export let customTitlebar: boolean; export let customTitlebar: boolean;
checkIfConfigIsBroken();
app.on("render-process-gone", (event, webContents, details) => { app.on("render-process-gone", (event, webContents, details) => {
if (details.reason == "crashed") { if (details.reason == "crashed") {
app.relaunch(); app.relaunch();
@ -80,6 +80,7 @@ if (!app.requestSingleInstanceLock() && getConfigSync("multiInstance") == (false
); );
checkForDataFolder(); checkForDataFolder();
checkIfConfigExists(); checkIfConfigExists();
checkIfConfigIsBroken();
injectElectronFlags(); injectElectronFlags();
app.whenReady().then(async () => { app.whenReady().then(async () => {
if ((await getConfig("customIcon")) !== undefined ?? null) { if ((await getConfig("customIcon")) !== undefined ?? null) {

View file

@ -28,11 +28,11 @@
async function loadLang() { async function loadLang() {
const text = document.getElementById("text-splashscreen"); const text = document.getElementById("text-splashscreen");
if (window.navigator.onLine === false) { if (window.navigator.onLine === false) {
text.innerHTML = await internal.getLang("loading_screen_offline"); for (let i = 0; i < 5; i++) {
document.getElementById("ignore").style.display = "block"; await new Promise((r) => setTimeout(r, 1000));
document.getElementById("ignore").onclick = () => { text.innerHTML = (await internal.getLang("loading_screen_offline")) + (5 - i) + "s";
window.internal.splashEnd(); }
}; window.internal.restart();
} else { } else {
text.innerHTML = await internal.getLang("loading_screen_start"); text.innerHTML = await internal.getLang("loading_screen_start");
if (window.internal.version === "3.3.0") { if (window.internal.version === "3.3.0") {