Browse Source

Improve updater

master
Daniel Pavela 2 weeks ago
parent
commit
c362babeed
Signed by: Daniel <daniel.pavela@gmail.com> GPG Key ID: 43D9384803D57A79
1 changed files with 8 additions and 4 deletions
  1. +8
    -4
      Engine/DGUpdate.py

+ 8
- 4
Engine/DGUpdate.py View File

@@ -16,10 +16,14 @@ def update():
if currentOS == "windows":
DGText.printScan(DGText.rip + "Currently, only Linux and macOS support the automatic updater.\n")
else:
DGText.printScan(DGText.loading + "Downloading new update")
DGText.printScan(DGText.loading + "Downloading new update (1/2)")
print(Style.RESET_ALL)
os.system("wget -O ./dungeoncli http://pavela.net:3000/attachments/9ba2e156-5732-4357-a641-269c25741f27")
os.system("chmod +x ./dungeoncli")
DGText.printScan(DGText.success + "Update complete! Press enter to restart.")
os.system("wget -O ./dungeoncli.zip http://pavela.net:3000/attachments/9ba2e156-5732-4357-a641-269c25741f27")

DGText.printScan(DGText.loading + "Extracting new update (2/2)")
print(Style.RESET_ALL)
os.system("unzip ./dungeoncli.zip -d ./dungeoncli/")

DGText.printScan(DGText.success + "\nUpdate complete! Press enter to restart.")
input("")
DGMain.DGExit()

Loading…
Cancel
Save