summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-10-21 18:18:03 +0200
committerFlorian Bruhin <me@the-compiler.org>2021-10-21 18:18:03 +0200
commit51972fa4e2fa3b9d90cd728020d5d7496331b008 (patch)
treec7938bff1224c45c4d3699785da2357597a4d273
parenta8dacd98fb15c688571d1fa9db82cbd4715a0bda (diff)
downloadqutebrowser-51972fa4e2fa3b9d90cd728020d5d7496331b008.tar.gz
qutebrowser-51972fa4e2fa3b9d90cd728020d5d7496331b008.zip
Revert "scripts: Remove macOS symlinking"
This reverts commit a0bfb7c824900881f01c53204d9e8cd0b5b78f53. It *is* required, just used the wrong path... gg
-rwxr-xr-xscripts/dev/build_release.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py
index 04a981199..a1c6646eb 100755
--- a/scripts/dev/build_release.py
+++ b/scripts/dev/build_release.py
@@ -225,6 +225,25 @@ def patch_mac_app():
with open(plist_path, "wb") as f:
plistlib.dump(plist_data, f)
+ # Replace some duplicate files by symlinks
+ framework_path = os.path.join(app_path, 'Contents', 'MacOS', 'PyQt5',
+ 'Qt', 'lib', 'QtWebEngineCore.framework')
+
+ core_lib = os.path.join(framework_path, 'Versions', '5', 'QtWebEngineCore')
+ os.remove(core_lib)
+ core_target = os.path.join(*[os.pardir] * 7, 'MacOS', 'QtWebEngineCore')
+ os.symlink(core_target, core_lib)
+
+ framework_resource_path = os.path.join(framework_path, 'Resources')
+ for name in os.listdir(framework_resource_path):
+ file_path = os.path.join(framework_resource_path, name)
+ target = os.path.join(*[os.pardir] * 5, name)
+ if os.path.isdir(file_path):
+ shutil.rmtree(file_path)
+ else:
+ os.remove(file_path)
+ os.symlink(target, file_path)
+
INFO_PLIST_UPDATES = {
'CFBundleVersion': qutebrowser.__version__,