From 571143afd8aef1c9f6ce80af68c7b4921911019f Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Wed, 2 Feb 2022 22:54:10 +0200 Subject: [PATCH] 2.1.2-beta1 Fixed compatibility issues with patch repos --- neutralino.config.json | 2 +- package.json | 2 +- scripts/bundle-appimage.cjs | 2 +- src/index.svelte | 2 +- src/ts/Launcher.ts | 2 +- src/ts/Patch.ts | 6 ++++-- 6 files changed, 9 insertions(+), 7 deletions(-) diff --git a/neutralino.config.json b/neutralino.config.json index b587cdd..19bbd91 100644 --- a/neutralino.config.json +++ b/neutralino.config.json @@ -1,6 +1,6 @@ { "applicationId": "com.gitlab.KRypt0n_.an-anime-game-launcher", - "version": "2.1.1", + "version": "2.1.2-beta1", "defaultMode": "window", "port": 0, "documentRoot": "/bundle/", diff --git a/package.json b/package.json index 43a680d..bbd6c41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "an-anime-game-launcher", - "version": "2.1.1", + "version": "2.1.2-beta1", "license": "GPL-3.0", "type": "module", "scripts": { diff --git a/scripts/bundle-appimage.cjs b/scripts/bundle-appimage.cjs index 958b36a..5f9c64d 100644 --- a/scripts/bundle-appimage.cjs +++ b/scripts/bundle-appimage.cjs @@ -39,7 +39,7 @@ const bundler = new Bundler({ output: path.join(__dirname, '../dist/An Anime Game Launcher.AppImage'), // Application version - version: '2.1.1' + version: '2.1.2-beta1' }); // Bundle project diff --git a/src/index.svelte b/src/index.svelte index f1a11e4..ad61606 100644 --- a/src/index.svelte +++ b/src/index.svelte @@ -77,7 +77,7 @@ * Update launcher's title */ Game.latest.then((game) => { - Windows.current.setTitle(`An Anime Game Launcher - ${game.version}`); + Windows.current.setTitle(`An Anime Game Launcher - ${game.version} (beta revision)`); }); /** diff --git a/src/ts/Launcher.ts b/src/ts/Launcher.ts index f0b99a0..14375b6 100644 --- a/src/ts/Launcher.ts +++ b/src/ts/Launcher.ts @@ -128,7 +128,7 @@ export default class Launcher Windows.current.show(); Windows.current.center(1280, 700); - }) + }); Windows.current.hide(); } diff --git a/src/ts/Patch.ts b/src/ts/Patch.ts index 119b571..b7cf72a 100644 --- a/src/ts/Patch.ts +++ b/src/ts/Patch.ts @@ -256,7 +256,7 @@ export default class Patch // Otherwise it should be [preparation], [testing] or [stable] else { - fetch(`${patchUri}/raw/master/${version.replaceAll('.', '')}/patch_files/unityplayer_patch.vcdiff`, this.fetchTimeout) + fetch(`${patchUri}/raw/master/${version.replaceAll('.', '')}/patch_files/unityplayer_patch_os.vcdiff`, this.fetchTimeout) .then((response) => { // Return an error if patch's server is unavailable if (response.status === null) @@ -303,7 +303,9 @@ export default class Patch source: source }; - const originalPlayer = /if \[ "\${sum}" != "([a-z0-9]{32})" \]; then/mg.exec(response); + const originalPlayer = /if \[ "\${sum}" == "([a-z0-9]{32})" \]; then/mg.exec(response); + + console.log(originalPlayer); // If we could get original UnityPlayer.dll hash - then we can // compare it with actual UnityPlayer.dll hash and say whether the patch