From: Daniel Molkentin Date: Fri, 17 Apr 2015 11:22:19 +0000 (+0200) Subject: Mac OS: The Resource/ folder in Qt frameworks might not exist X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1803^2~175 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7390ddbd98a33b8ff202399f49b6c044e1f51f04;p=nextcloud-desktop.git Mac OS: The Resource/ folder in Qt frameworks might not exist Make sure to create it --- diff --git a/admin/osx/macdeployqt.py b/admin/osx/macdeployqt.py index 73acb272a..3d3fe4908 100755 --- a/admin/osx/macdeployqt.py +++ b/admin/osx/macdeployqt.py @@ -260,14 +260,18 @@ def CopyFramework(path): commands.append(args) args = ['chmod', 'u+w', os.path.join(full_path, parts[-1])] commands.append(args) - args = ['chmod', 'u+w', os.path.join(frameworks_dir, framework, "Resources")] + resources_dir = os.path.join(frameworks_dir, framework, "Resources") + + args = ['mkdir', resources_dir] + commands.append(args) + args = ['chmod', 'u+w', resources_dir] commands.append(args) info_plist = os.path.join(os.path.split(path)[0], '..', '..', 'Contents', 'Info.plist') if not os.path.exists(info_plist): info_plist = os.path.join(os.path.split(path)[0], 'Resources', 'Info.plist') if os.path.exists(info_plist): - args = ['cp', '-r', info_plist, os.path.join(frameworks_dir, framework, "Resources")] + args = ['cp', '-r', info_plist, resources_dir] commands.append(args) return os.path.join(full_path, parts[-1])