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 launcher not auto updating properly. Version update …
Browse files Browse the repository at this point in the history
…v1.8.1
  • Loading branch information
ricky-davis committed May 10, 2021
1 parent 7cd8967 commit 47c9c81
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions AstroLauncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,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.0"
self.version = "v1.8.1"
colsize = os.get_terminal_size().columns
if colsize >= 77:
vText = "Version " + self.version[1:]
Expand Down Expand Up @@ -288,10 +288,11 @@ def __init__(self, astroPath, launcherINI="Launcher.ini", disable_auto_update=No

self.check_for_server_update()

self.check_for_launcher_update()

self.DedicatedServer = AstroDedicatedServer(
self.astroPath, self)

self.check_for_launcher_update()



AstroLogging.logPrint("Starting a new session")
Expand Down Expand Up @@ -609,8 +610,7 @@ def autoupdate_launcher(self, data):
'Write-Host "Download complete!";',
'Start-Process', f"'{downloadPath + '.exe'}'"]
# print(' '.join(downloadCMD))
subprocess.Popen(downloadCMD, shell=True,
creationflags=subprocess.DETACHED_PROCESS)
subprocess.Popen(downloadCMD, shell=True, creationflags=subprocess.DETACHED_PROCESS, stdin=None, stdout=None, stderr=None, close_fds=True)
time.sleep(2)
self.DedicatedServer.kill_server("Auto-Update")

Expand Down

0 comments on commit 47c9c81

Please sign in to comment.