mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 04:34:37 +03:00
Merge pull request #914 from tsteven4/woa
Some checks failed
Check tox tests / Check packaging 📦 (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Publish Python 🐍 distributions 📦 to PyPI / Build package (push) Has been cancelled
Test on GH actions environment / test (binary, windows-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.5.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.8.0) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.8.1) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.5.3) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.7.3) (push) Has been cancelled
Publish Python 🐍 distributions 📦 to PyPI / publish Python 🐍 distributions 📦 to PyPI (push) Has been cancelled
Some checks failed
Check tox tests / Check packaging 📦 (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Publish Python 🐍 distributions 📦 to PyPI / Build package (push) Has been cancelled
Test on GH actions environment / test (binary, windows-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.5.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.8.0) (push) Has been cancelled
Test on GH actions environment / test (standard, ubuntu-latest, 3.13, 6.8.1) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.5.3) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.6.3) (push) Has been cancelled
Test on GH actions environment / test (standard, windows-latest, 3.13, 6.7.3) (push) Has been cancelled
Publish Python 🐍 distributions 📦 to PyPI / publish Python 🐍 distributions 📦 to PyPI (push) Has been cancelled
update host windows_arm64 files as we do with windows.
This commit is contained in:
@@ -185,11 +185,11 @@ class Updater:
|
|||||||
)
|
)
|
||||||
|
|
||||||
def patch_qt_scripts(self, base_dir, version_dir: str, os_name: str, desktop_arch_dir: str, version: Version):
|
def patch_qt_scripts(self, base_dir, version_dir: str, os_name: str, desktop_arch_dir: str, version: Version):
|
||||||
sep = "\\" if os_name == "windows" else "/"
|
sep = "\\" if os_name.startswith("windows") else "/"
|
||||||
patched = sep.join([base_dir, version_dir, desktop_arch_dir, "bin"])
|
patched = sep.join([base_dir, version_dir, desktop_arch_dir, "bin"])
|
||||||
|
|
||||||
def patch_script(script_name):
|
def patch_script(script_name):
|
||||||
script_path = self.prefix / "bin" / (script_name + ".bat" if os_name == "windows" else script_name)
|
script_path = self.prefix / "bin" / (script_name + ".bat" if os_name.startswith("windows") else script_name)
|
||||||
self.logger.info(f"Patching {script_path}")
|
self.logger.info(f"Patching {script_path}")
|
||||||
for unpatched in unpatched_paths():
|
for unpatched in unpatched_paths():
|
||||||
self._patch_textfile(script_path, f"{unpatched}bin", patched, is_executable=True)
|
self._patch_textfile(script_path, f"{unpatched}bin", patched, is_executable=True)
|
||||||
@@ -209,7 +209,7 @@ class Updater:
|
|||||||
elif target.os_name == "linux":
|
elif target.os_name == "linux":
|
||||||
lib_dir = self.prefix.joinpath("lib")
|
lib_dir = self.prefix.joinpath("lib")
|
||||||
components = ["libQt5Core.so"]
|
components = ["libQt5Core.so"]
|
||||||
elif target.os_name == "windows":
|
elif target.os_name.startswith("windows"):
|
||||||
lib_dir = self.prefix.joinpath("bin")
|
lib_dir = self.prefix.joinpath("bin")
|
||||||
components = ["Qt5Cored.dll", "Qt5Core.dll"]
|
components = ["Qt5Cored.dll", "Qt5Core.dll"]
|
||||||
else:
|
else:
|
||||||
@@ -255,7 +255,7 @@ class Updater:
|
|||||||
new_hostprefix = f"HostPrefix=../../{desktop_arch_dir}"
|
new_hostprefix = f"HostPrefix=../../{desktop_arch_dir}"
|
||||||
new_targetprefix = "Prefix={}".format(str(Path(base_dir).joinpath(qt_version, arch_dir, "target")))
|
new_targetprefix = "Prefix={}".format(str(Path(base_dir).joinpath(qt_version, arch_dir, "target")))
|
||||||
new_hostdata = "HostData=../{}".format(arch_dir)
|
new_hostdata = "HostData=../{}".format(arch_dir)
|
||||||
new_host_lib_execs = "./bin" if os_name == "windows" else "./libexec"
|
new_host_lib_execs = "./bin" if os_name.startswith("windows") else "./libexec"
|
||||||
old_host_lib_execs = re.compile(r"^HostLibraryExecutables=[^\n]*$", flags=re.MULTILINE)
|
old_host_lib_execs = re.compile(r"^HostLibraryExecutables=[^\n]*$", flags=re.MULTILINE)
|
||||||
|
|
||||||
self._patch_textfile(target_qt_conf, old_host_lib_execs, f"HostLibraryExecutables={new_host_lib_execs}")
|
self._patch_textfile(target_qt_conf, old_host_lib_execs, f"HostLibraryExecutables={new_host_lib_execs}")
|
||||||
@@ -321,7 +321,7 @@ class Updater:
|
|||||||
updater.patch_pkgconfig("/Users/qt/work/install", target.os_name)
|
updater.patch_pkgconfig("/Users/qt/work/install", target.os_name)
|
||||||
updater.patch_libtool("/Users/qt/work/install/lib", target.os_name)
|
updater.patch_libtool("/Users/qt/work/install/lib", target.os_name)
|
||||||
updater.patch_prl("/Users/qt/work/install/lib")
|
updater.patch_prl("/Users/qt/work/install/lib")
|
||||||
elif target.os_name == "windows":
|
elif target.os_name.startswith("windows"):
|
||||||
updater.patch_pkgconfig("c:/Users/qt/work/install", target.os_name)
|
updater.patch_pkgconfig("c:/Users/qt/work/install", target.os_name)
|
||||||
updater.patch_prl("c:/Users/qt/work/install/lib")
|
updater.patch_prl("c:/Users/qt/work/install/lib")
|
||||||
updater.make_qtenv2(base_dir, version_dir, arch_dir)
|
updater.make_qtenv2(base_dir, version_dir, arch_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user