mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2025-01-01 22:47:19 +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",
|
"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/",
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)`);
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue