Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Fixed issue with get request system breaking auto updates/installs
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky-davis committed Sep 14, 2021
1 parent 8bc724a commit 4c0b3ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AstroLauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def __init__(self, astroPath, launcherINI="Launcher.ini", disable_auto_update=No
astroPath=self.astroPath, logRetention=int(self.launcherConfig.LogRetentionDays))
if disable_auto_update is not None:
self.launcherConfig.AutoUpdateLauncherSoftware = not disable_auto_update
self.version = "v1.8.2"
self.version = "v1.8.2.1"
colsize = os.get_terminal_size().columns
if colsize >= 77:
vText = "Version " + self.version[1:]
Expand Down Expand Up @@ -414,9 +414,9 @@ def update_server(self, latest_version):
if not os.path.exists(steamcmdExe):
if not os.path.exists(steamcmdZip):
url = "https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip"
r = (AstroRequests.get(url))
r = (AstroRequests.get(url)).read()
with open(steamcmdZip, 'wb') as f:
f.write(r.content)
f.write(r)
with zipfile.ZipFile(steamcmdZip, 'r') as zip_ref:
zip_ref.extractall(steamcmdFolder)
update_downloaded = False
Expand Down

0 comments on commit 4c0b3ea

Please sign in to comment.