Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixelsuft committed Sep 30, 2023
1 parent 6d5a5ce commit d45aa5a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion files/locale_en.json
Original file line number Diff line number Diff line change
@@ -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!",
Expand Down
1 change: 0 additions & 1 deletion files/locale_ru.json
Original file line number Diff line number Diff line change
@@ -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!",
Expand Down
10 changes: 5 additions & 5 deletions installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d45aa5a

Please sign in to comment.