Skip to content

Commit

Permalink
Fix arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard20181 committed Mar 5, 2024
1 parent 055bba0 commit 8cee064
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/extractWSA.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,16 @@ def __repr__(self):

with zipfile.ZipFile(wsa_zip_path) as zip:
for f in zip.filelist:
if arch in f.filename.lower():
filename_lower = f.filename.lower()
if arch in filename_lower:
zip_name = f.filename
if not Path(workdir / zip_name).is_file():
print(f"unzipping {zip_name} to {workdir}", flush=True)
zip_path = zip.extract(f, workdir)
with zipfile.ZipFile(zip_path) as zip:
with zipfile.ZipFile(zip_path) as wsa_zip:
stat = Path(zip_path).stat()
print(f"unzipping from {zip_path}", flush=True)
zip.extractall(archdir)
wsa_zip.extractall(archdir)
ver_no = zip_name.split("_")
long_ver = ver_no[1]
ver = long_ver.split(".")
Expand All @@ -96,7 +97,6 @@ def __repr__(self):
env.WSA_REL = rel_long
with open(env_file, 'w') as environ_file:
environ_file.write(str(env))
filename_lower = f.filename.lower()
if 'language' in filename_lower or 'scale' in filename_lower:
name = f.filename.split("_")[2].split(".")[0]
zip.extract(f, workdir)
Expand Down

0 comments on commit 8cee064

Please sign in to comment.