2.1.2-beta1

Fixed compatibility issues with patch repos
This commit is contained in:
Observer KRypt0n_ 2022-02-02 22:54:10 +02:00
parent b75e389739
commit 571143afd8
No known key found for this signature in database
GPG key ID: DC5D4EC1303465DA
6 changed files with 9 additions and 7 deletions

View file

@ -1,6 +1,6 @@
{ {
"applicationId": "com.gitlab.KRypt0n_.an-anime-game-launcher", "applicationId": "com.gitlab.KRypt0n_.an-anime-game-launcher",
"version": "2.1.1", "version": "2.1.2-beta1",
"defaultMode": "window", "defaultMode": "window",
"port": 0, "port": 0,
"documentRoot": "/bundle/", "documentRoot": "/bundle/",

View file

@ -1,6 +1,6 @@
{ {
"name": "an-anime-game-launcher", "name": "an-anime-game-launcher",
"version": "2.1.1", "version": "2.1.2-beta1",
"license": "GPL-3.0", "license": "GPL-3.0",
"type": "module", "type": "module",
"scripts": { "scripts": {

View file

@ -39,7 +39,7 @@ const bundler = new Bundler({
output: path.join(__dirname, '../dist/An Anime Game Launcher.AppImage'), output: path.join(__dirname, '../dist/An Anime Game Launcher.AppImage'),
// Application version // Application version
version: '2.1.1' version: '2.1.2-beta1'
}); });
// Bundle project // Bundle project

View file

@ -77,7 +77,7 @@
* Update launcher's title * Update launcher's title
*/ */
Game.latest.then((game) => { Game.latest.then((game) => {
Windows.current.setTitle(`An Anime Game Launcher - ${game.version}`); Windows.current.setTitle(`An Anime Game Launcher - ${game.version} (beta revision)`);
}); });
/** /**

View file

@ -128,7 +128,7 @@ export default class Launcher
Windows.current.show(); Windows.current.show();
Windows.current.center(1280, 700); Windows.current.center(1280, 700);
}) });
Windows.current.hide(); Windows.current.hide();
} }

View file

@ -256,7 +256,7 @@ export default class Patch
// Otherwise it should be [preparation], [testing] or [stable] // Otherwise it should be [preparation], [testing] or [stable]
else 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) => { .then((response) => {
// Return an error if patch's server is unavailable // Return an error if patch's server is unavailable
if (response.status === null) if (response.status === null)
@ -303,7 +303,9 @@ export default class Patch
source: source 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 // If we could get original UnityPlayer.dll hash - then we can
// compare it with actual UnityPlayer.dll hash and say whether the patch // compare it with actual UnityPlayer.dll hash and say whether the patch