Fix tarfile.open call in dotnet bootstrap (fileobj=)
release / gui-build (linux, bash) (push) Successful in 1m4s
release / gui-build (windows, cmd) (push) Successful in 1m43s
release / gui-build (macos, bash) (push) Successful in 1m42s

This commit is contained in:
2026-09-22 23:52:52 +00:00
parent 303aabc181
commit bb88ab7d98
+1 -1
View File
@@ -293,7 +293,7 @@ def fetch_dotnet() -> str:
with zipfile.ZipFile(io.BytesIO(data)) as zf:
zf.extractall(_DOTNET_STAGING)
else:
with tarfile.open(io.BytesIO(data), "r:gz") as tf:
with tarfile.open(fileobj=io.BytesIO(data), mode="r:gz") as tf:
tf.extractall(_DOTNET_STAGING)
staged.chmod(staged.stat().st_mode | stat.S_IXUSR | stat.S_IXGRP | stat.S_IXOTH)