From 2345921349f678cf850993bcae142da4ccf3fbc1 Mon Sep 17 00:00:00 2001 From: shun suzuki Date: Mon, 4 Nov 2024 09:59:23 +0900 Subject: [PATCH] fix build script --- build.py | 3 +++ src/.gitignore | 3 +++ src/native/.gitignore | 3 --- src/native/linux/x64/.gitkeep | 0 src/native/osx/aarch64/.gitkeep | 0 src/native/windows/x64/.gitkeep | 0 6 files changed, 6 insertions(+), 3 deletions(-) delete mode 100644 src/native/.gitignore delete mode 100644 src/native/linux/x64/.gitkeep delete mode 100644 src/native/osx/aarch64/.gitkeep delete mode 100644 src/native/windows/x64/.gitkeep diff --git a/build.py b/build.py index b322a45d..373428b3 100644 --- a/build.py +++ b/build.py @@ -64,6 +64,9 @@ def download_and_extract(url: str, *dest_dirs: str) -> None: tar.extractall(filter="fully_trusted") tmp_file.unlink() + for dest_dir in dest_dirs: + Path(dest_dir).mkdir(parents=True, exist_ok=True) + for dll in Path("bin").glob("*.dll"): for dest_dir in dest_dirs: shutil.copy(dll, dest_dir) diff --git a/src/.gitignore b/src/.gitignore index 35252fda..e994ce2d 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -1 +1,4 @@ LICENSE.txt +*.dll +*.dylib +*.so diff --git a/src/native/.gitignore b/src/native/.gitignore deleted file mode 100644 index 0c01ec23..00000000 --- a/src/native/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -*.dll -*.dylib -*.so diff --git a/src/native/linux/x64/.gitkeep b/src/native/linux/x64/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/native/osx/aarch64/.gitkeep b/src/native/osx/aarch64/.gitkeep deleted file mode 100644 index e69de29b..00000000 diff --git a/src/native/windows/x64/.gitkeep b/src/native/windows/x64/.gitkeep deleted file mode 100644 index e69de29b..00000000