Mac OS: The Resource/ folder in Qt frameworks might not exist
authorDaniel Molkentin <danimo@owncloud.com>
Fri, 17 Apr 2015 11:22:19 +0000 (13:22 +0200)
committerDaniel Molkentin <danimo@owncloud.com>
Fri, 17 Apr 2015 11:31:05 +0000 (13:31 +0200)
Make sure to create it

admin/osx/macdeployqt.py

index 73acb272a27aece2b4e68d99d4f829ab7b218c2b..3d3fe49085d77357f902b6b6a1dbbefb8e6e81e2 100755 (executable)
@@ -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])