Skip to content

Commit

Permalink
Fix #475
Browse files Browse the repository at this point in the history
  • Loading branch information
lshqqytiger committed Jun 28, 2024
1 parent 50d3cf7 commit 9585f5d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/zluda_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import shutil
import zipfile
import platform
import urllib.request
import requests
from typing import Union


Expand Down Expand Up @@ -36,7 +36,10 @@ def install(zluda_path: os.PathLike) -> None:
if platform.system() != 'Windows': # TODO
return

urllib.request.urlretrieve(f'https://github.com/lshqqytiger/ZLUDA/releases/download/{RELEASE}/ZLUDA-windows-amd64.zip', '_zluda')
with open('_zluda', 'wb') as file:
res = requests.get(f'https://github.com/lshqqytiger/ZLUDA/releases/download/{RELEASE}/ZLUDA-windows-amd64.zip', timeout=30)
file.write(res.content)

with zipfile.ZipFile('_zluda', 'r') as archive:
infos = archive.infolist()
for info in infos:
Expand Down

0 comments on commit 9585f5d

Please sign in to comment.