Skip to content

Commit

Permalink
Merge pull request faroukbmiled#44 from faroukbmiled/staging
Browse files Browse the repository at this point in the history
fix 'with open' for binary
  • Loading branch information
faroukbmiled authored Jun 8, 2024
2 parents af6f1d7 + ccfc180 commit 6776c28
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion boiiiwd_package/src/imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@
RESOURCES_DIR = os.path.join(os.path.dirname(__file__), '..', 'resources')
UPDATER_FOLDER = "update"
REGISTRY_KEY_PATH = r"Software\BOIIIWD"
VERSION = "v0.3.6.1"
VERSION = "v0.3.6.2"
2 changes: 1 addition & 1 deletion boiiiwd_package/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def download_steamcmd(self):
response = requests.get(steamcmd_url)
response.raise_for_status()

with open(steamcmd_zip_path, "wb", errors="ignore") as zip_file:
with open(steamcmd_zip_path, "wb") as zip_file:
zip_file.write(response.content)

with zipfile.ZipFile(steamcmd_zip_path, "r") as zip_ref:
Expand Down
6 changes: 2 additions & 4 deletions boiiiwd_package/src/update_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ def __init__(self, master, update_url):
super().__init__(master)
self.title("BOIIIWD Self-Updater")
_, _, x, y = get_window_size_from_registry()
try:
self.geometry(f"400x150+{x}+{y}")
except:
self.geometry("400x150")
try: self.geometry(f"400x150+{x}+{y}")
except: self.geometry("400x150")
if os.path.exists(os.path.join(RESOURCES_DIR, "ryuk.ico")):
self.after(250, lambda: self.iconbitmap(os.path.join(RESOURCES_DIR, "ryuk.ico")))
self.protocol("WM_DELETE_WINDOW", self.cancel_update)
Expand Down

0 comments on commit 6776c28

Please sign in to comment.