1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-22 10:42:29 +01:00

Fix missing dlls

This commit is contained in:
Elias Steurer 2021-10-03 17:45:44 +02:00
parent b59212d1e4
commit 4146f2fbba
2 changed files with 12 additions and 1 deletions

View File

@ -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"]

View File

@ -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",