Skip to content

Commit

Permalink
Adapt to new directory structure for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiforest committed Jan 27, 2025
1 parent 1a2971c commit 6abe07e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import shutil
import struct
import tempfile
from glob import glob
from pathlib import Path
from urllib.request import urlretrieve

Expand Down Expand Up @@ -72,6 +73,12 @@ def download_libcurl():
os.makedirs(arch["libdir"], exist_ok=True)
shutil.unpack_archive(file, arch["libdir"])

if arch["system"] == "Windows":
for file in glob(os.path.join(arch["libdir"], "lib/*.lib")):
shutil.move(file, arch["libdir"])
for file in glob(os.path.join(arch["libdir"], "bin/*.dll")):
shutil.move(file, arch["libdir"])

print("Files after unpacking")
print(os.listdir(arch["libdir"]))

Expand Down

0 comments on commit 6abe07e

Please sign in to comment.