mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-06 19:12:30 +01:00
Remove old download script and fix openssl on win
This commit is contained in:
parent
11905a6370
commit
ac00f94dc5
@ -1,49 +0,0 @@
|
||||
#!/usr/bin/python3
|
||||
# SPDX-License-Identifier: LicenseRef-EliasSteurerTachiom OR AGPL-3.0-only
|
||||
import argparse
|
||||
import subprocess
|
||||
from platform import platform, system
|
||||
from pathlib import Path
|
||||
from execute_util import execute
|
||||
from sys import stdout
|
||||
|
||||
stdout.reconfigure(encoding='utf-8')
|
||||
|
||||
def run(cmd, cwd=Path.cwd()):
|
||||
result = subprocess.run(cmd, shell=True, cwd=cwd)
|
||||
if result.returncode != 0:
|
||||
raise RuntimeError(f"Failed to execute {cmd}")
|
||||
|
||||
def download_qt():
|
||||
root_path = Path.cwd()
|
||||
qt_version = "6.4.0"
|
||||
qt_installer_version = "4.4"
|
||||
qt_path = " "
|
||||
operating_system = " "
|
||||
device_type = "desktop"
|
||||
qt_bin = " "
|
||||
aqt_path = Path(f"{root_path}/../../aqt/").resolve()
|
||||
|
||||
parser = argparse.ArgumentParser(description='Installs qt')
|
||||
parser.add_argument('--path', help='')
|
||||
args = parser.parse_args()
|
||||
|
||||
|
||||
if system() == "Windows":
|
||||
operating_system = "windows"
|
||||
qt_bin = "win64_msvc2019_64"
|
||||
elif system() == "Darwin":
|
||||
operating_system = "mac"
|
||||
qt_bin = "clang_64"
|
||||
elif system() == "Linux":
|
||||
operating_system = "linux"
|
||||
qt_bin = "gcc_64"
|
||||
|
||||
print(f"Download destination: {aqt_path} ")
|
||||
run("python3 -m pip install -U pip wheel")
|
||||
run("python3 -m pip install aqtinstall")
|
||||
run(f"python3 -m aqt install-qt -O {aqt_path} {operating_system} {device_type} {qt_version} {qt_bin} -m all")
|
||||
run(f"python3 -m aqt install-tool -O {aqt_path} {operating_system} {device_type} tools_ifw ")
|
||||
|
||||
if __name__ == "__main__":
|
||||
download_qt()
|
@ -59,7 +59,7 @@ def download(aqt_path: Path, qt_platform: Path):
|
||||
# see: python -m aqt list-tool windows desktop
|
||||
tools = ["tools_ifw", "tools_qtcreator", "tools_ninja" ,"tools_cmake"]
|
||||
if system() == "Windows":
|
||||
tools += "tools_opensslv3_x64"
|
||||
tools += ["tools_opensslv3_x64"]
|
||||
for tool in tools:
|
||||
execute(f"{defines.PYTHON_EXECUTABLE} -m aqt install-tool -O {aqt_path} {os} desktop {tool}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user