Skip to content

Commit

Permalink
v1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Disneyhockey40 committed Jun 29, 2024
1 parent b88f845 commit 21b32ba
Show file tree
Hide file tree
Showing 2 changed files with 112 additions and 47 deletions.
2 changes: 1 addition & 1 deletion AutoUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def OszustOSAutoUpdater(systemName, systemBuild, softwareVersion, newestVersion)
loadingStatus = "Error-Bad API call was made to GitHub's releases." ## Bad API Call
return
if newestVersion != softwareVersion:
try: releaseInfo = json.loads(urllib.request.urlopen(f"https://api.github.com/repos/Oszust-Industries/" + systemName.replace(" ", "-") + "/releases?per_page=1").read().decode()) ## Changelog File
try: releaseInfo = (json.loads(urllib.request.urlopen(f"https://api.github.com/repos/Oszust-Industries/" + systemName.replace(" ", "-") + "/releases?per_page=1").read().decode()))[0]['body'] ## Changelog File
except: releaseInfo = "Failed"
if "[AutoUpdater Code 0]" in releaseInfo: ## AutoUpdater is Blacklisted
loadingStatus = "AutoUpdater can't install the files properly. User must install them manually."
Expand Down
Loading

0 comments on commit 21b32ba

Please sign in to comment.