Skip to content

Commit

Permalink
umu_runtime: fix steamrt always updating each launch
Browse files Browse the repository at this point in the history
- In the case the runtime gets updated, differences in character encoding of the VERSIONS.txt files may cause the launcher to always update on subsequent launches. Another http client library will be explored in the future to handle future redirects for Github and Cloudflare, and for more robust handling of networking errors.

- Related to #188
  • Loading branch information
R1kaB3rN committed Sep 17, 2024
1 parent 770c1cd commit 4874190
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion umu/umu_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,10 @@ def _update_umu(
)
return

steamrt_latest_digest: bytes = sha256(resp.read()).digest()
versions_utf8: str = resp.read().decode(encoding="utf-8")
steamrt_latest_digest: bytes = sha256(
versions_utf8.encode(encoding="utf-8")
).digest()

if (
steamrt_latest_digest
Expand Down

0 comments on commit 4874190

Please sign in to comment.