mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-29 21:18:17 +03:00
2.1.2-beta1
Fixed compatibility issues with patch repos
This commit is contained in:
parent
b75e389739
commit
571143afd8
6 changed files with 9 additions and 7 deletions
|
@ -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/",
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)`);
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -128,7 +128,7 @@ export default class Launcher
|
|||
|
||||
Windows.current.show();
|
||||
Windows.current.center(1280, 700);
|
||||
})
|
||||
});
|
||||
|
||||
Windows.current.hide();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue