From 4146f2fbba3698c9c93e245191b5e14a59b98d6f Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Sun, 3 Oct 2021 17:45:44 +0200 Subject: [PATCH] Fix missing dlls --- Tools/build.py | 11 +++++++++++ Tools/setup.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Tools/build.py b/Tools/build.py index c397b585..50d2863d 100644 --- a/Tools/build.py +++ b/Tools/build.py @@ -156,6 +156,17 @@ if platform == "darwin" and args.sign_build: execute("spctl --assess --verbose \"ScreenPlayWallpaper.app/\"") execute("spctl --assess --verbose \"ScreenPlayWidget.app/\"") +# Some dlls like openssl do no longer get copied automatically. +# Lets just copy all of them into bin. +if platform == "win32": + vcpkg_bin_path = os.path.abspath(("{root_path}/../ScreenPlay-vcpkg/installed/x64-windows/bin").format(root_path=root_path)) + print(vcpkg_bin_path) + for basename in os.listdir(vcpkg_bin_path): + if basename.endswith('.dll'): + pathname = os.path.join(vcpkg_bin_path, basename) + print(pathname, os.getcwd()) + if os.path.isfile(pathname): + shutil.copy2(pathname, os.getcwd()) file_endings = [".ninja_deps", ".ninja", ".ninja_log", ".lib", ".a", ".dylib", ".exp", ".manifest", ".cmake", ".cbp", "CMakeCache.txt"] diff --git a/Tools/setup.py b/Tools/setup.py index 515196d7..f402f0b3 100644 --- a/Tools/setup.py +++ b/Tools/setup.py @@ -37,7 +37,7 @@ if __name__ == "__main__": execute("git checkout {}".format(vcpkg_version), vcpkg_path) vcpkg_packages_list = [ - "openssl-unix", + "openssl", "curl", "sentry-native", "doctest",