mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-09-18 08:22:33 +02:00
Fix setup script
This commit is contained in:
parent
a8cad9eb76
commit
962f3ea4cd
@ -99,12 +99,9 @@ def download_prebuild_ffmpeg_windows(extraction_path: str):
|
|||||||
|
|
||||||
extract_zip_executables(extraction_path, ffmpeg_path_and_filename)
|
extract_zip_executables(extraction_path, ffmpeg_path_and_filename)
|
||||||
|
|
||||||
|
def execute():
|
||||||
if __name__ == "__main__":
|
|
||||||
|
|
||||||
# Make sure the script is always started from the same folder
|
# Make sure the script is always started from the same folder
|
||||||
root_path = cd_repo_root_path()
|
root_path = cd_repo_root_path()
|
||||||
tools_path = os.path.join(root_path, "Tools")
|
|
||||||
extraction_path = os.path.join(root_path, "Common/ffmpeg")
|
extraction_path = os.path.join(root_path, "Common/ffmpeg")
|
||||||
|
|
||||||
if os.path.exists(extraction_path):
|
if os.path.exists(extraction_path):
|
||||||
@ -112,8 +109,11 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
os.makedirs(extraction_path)
|
os.makedirs(extraction_path)
|
||||||
|
|
||||||
|
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
download_prebuild_ffmpeg_windows(extraction_path)
|
download_prebuild_ffmpeg_windows(extraction_path)
|
||||||
elif platform.os.system() == "Darwin":
|
elif platform.system() == "Darwin":
|
||||||
download_prebuild_ffmpeg_mac(extraction_path)
|
download_prebuild_ffmpeg_mac(extraction_path)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
execute()
|
||||||
|
@ -78,12 +78,13 @@ without the ScreenPlay-vcpkg folder (E.g. py .\setup.py --path "D:/Backup/Code/Q
|
|||||||
"libarchive"
|
"libarchive"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
download_ffmpeg.execute()
|
||||||
|
|
||||||
if system() == "Windows":
|
if system() == "Windows":
|
||||||
vcpkg_command = "vcpkg.exe"
|
vcpkg_command = "vcpkg.exe"
|
||||||
vcpkg_packages_list.append("infoware[d3d]")
|
vcpkg_packages_list.append("infoware[d3d]")
|
||||||
vcpkg_packages_list.append("sentry-native")
|
vcpkg_packages_list.append("sentry-native")
|
||||||
platform_command.add("bootstrap-vcpkg.bat", vcpkg_path, False)
|
platform_command.add("bootstrap-vcpkg.bat", vcpkg_path, False)
|
||||||
download_ffmpeg.download_prebuild_ffmpeg_windows()
|
|
||||||
vcpkg_triplet = ["x64-windows"]
|
vcpkg_triplet = ["x64-windows"]
|
||||||
elif system() == "Darwin":
|
elif system() == "Darwin":
|
||||||
vcpkg_command = "./vcpkg"
|
vcpkg_command = "./vcpkg"
|
||||||
@ -93,7 +94,6 @@ without the ScreenPlay-vcpkg folder (E.g. py .\setup.py --path "D:/Backup/Code/Q
|
|||||||
platform_command.add("./bootstrap-vcpkg.sh", vcpkg_path, False)
|
platform_command.add("./bootstrap-vcpkg.sh", vcpkg_path, False)
|
||||||
platform_command.add("chmod +x vcpkg", vcpkg_path)
|
platform_command.add("chmod +x vcpkg", vcpkg_path)
|
||||||
vcpkg_triplet = ["x64-osx", "arm64-osx"]
|
vcpkg_triplet = ["x64-osx", "arm64-osx"]
|
||||||
download_ffmpeg.download_prebuild_ffmpeg_mac()
|
|
||||||
elif system() == "Linux":
|
elif system() == "Linux":
|
||||||
vcpkg_command = "./vcpkg"
|
vcpkg_command = "./vcpkg"
|
||||||
#vcpkg_packages_list.append("infoware[opengl]")
|
#vcpkg_packages_list.append("infoware[opengl]")
|
||||||
|
Loading…
Reference in New Issue
Block a user