From d45aa5a779e567793d35f5e56fbee6c4a380aeb1 Mon Sep 17 00:00:00 2001 From: Pixelsuft Date: Sat, 30 Sep 2023 10:19:35 +0700 Subject: [PATCH] upd --- files/locale_en.json | 1 - files/locale_ru.json | 1 - installer.py | 10 +++++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/files/locale_en.json b/files/locale_en.json index 072a6b6..11cbc55 100644 --- a/files/locale_en.json +++ b/files/locale_en.json @@ -1,6 +1,5 @@ { "json_url": "https://github.com/gdlocalisation/gdl-binaries/releases/latest/download/gdl-binaries.json", - "binaries_url": "https://github.com/gdlocalisation/gdl-binaries/releases/latest/download/gdl-binaries.bin.gzip", "data": [ "GDL Installer", "Welcome to the GDL Installer!", diff --git a/files/locale_ru.json b/files/locale_ru.json index 006cfe7..dd2a432 100644 --- a/files/locale_ru.json +++ b/files/locale_ru.json @@ -1,6 +1,5 @@ { "json_url": "https://github.com/gdlocalisation/gdl-binaries/releases/latest/download/gdl-binaries.json", - "binaries_url": "https://github.com/gdlocalisation/gdl-binaries/releases/latest/download/gdl-binaries.bin.gzip", "data": [ "Установка GDL", "Вас приветствует мастер установки русификатора для Geometry Dash!", diff --git a/installer.py b/installer.py index 7900fda..d562d73 100644 --- a/installer.py +++ b/installer.py @@ -192,7 +192,7 @@ def tab_changed(self, to_change: int = -1) -> None: self.logger.log('Installing to', self.install_path) self.window.download_thread = loader = threader.Downloader() self.window.binary_data = b'' - loader.url = self.app.locale['binaries_url'] + loader.url = self.json_data['binaries-url'] loader.encoding = self.app.encoding loader.chunk_size = 1024 * 32 if self.app.is_compiled else 1024 * 128 loader.progress.connect(self.download_progress) @@ -219,7 +219,7 @@ def register_app(self) -> None: winreg.SetValueEx(key, 'DisplayIcon', 0, winreg.REG_SZ, os.path.join(self.install_game_path, 'gdl-icon.ico')) winreg.SetValueEx(key, 'DisplayName', 0, winreg.REG_SZ, 'Geometry Dash Localisation') winreg.SetValueEx(key, 'DisplayVersion', 0, winreg.REG_SZ, '1.0.0') - winreg.SetValueEx(key, 'URLInfoAbout', 0, winreg.REG_SZ, 'https://www.gdlocalisation.uk/') + winreg.SetValueEx(key, 'URLInfoAbout', 0, winreg.REG_SZ, self.json_data['settings-url']) installer_path = '"' + os.path.join(self.install_game_path, os.path.basename(self.app.exec_script)) + '"' if not self.app.is_compiled: installer_path = '"' + sys.executable + '" ' + installer_path @@ -369,7 +369,7 @@ def go_forward(self) -> None: winapi.ShellExecuteW( self.hwnd, None, - 'https://www.gdlocalisation.uk/', + self.json_data['site-url'], None, None, 0x05 @@ -378,7 +378,7 @@ def go_forward(self) -> None: winapi.ShellExecuteW( self.hwnd, None, - 'https://github.com/gdlocalisation', + self.json_data['github-url'], None, None, 0x05 @@ -387,7 +387,7 @@ def go_forward(self) -> None: winapi.ShellExecuteW( self.hwnd, None, - 'https://discord.gg/CScsGU3N6M', + self.json_data['settings-url'], None, None, 0x05