mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Fixed copying Info.plist into frameworks.
This commit is contained in:
@@ -463,16 +463,18 @@ def CopyFramework(path):
|
|||||||
# Copy Contents/Info.plist to Resources/Info.plist if Resources/Info.plist does not exist
|
# Copy Contents/Info.plist to Resources/Info.plist if Resources/Info.plist does not exist
|
||||||
# If Contents/Info.plist doesn't exist either, error out. If we actually see this, we can copy QtCore's Info.plist
|
# If Contents/Info.plist doesn't exist either, error out. If we actually see this, we can copy QtCore's Info.plist
|
||||||
info_plist_in_resources = os.path.join(os.path.split(path)[0], '..', '..', 'Resources', 'Info.plist')
|
info_plist_in_resources = os.path.join(os.path.split(path)[0], '..', '..', 'Resources', 'Info.plist')
|
||||||
if not os.path.exists(info_plist_in_resources):
|
if os.path.exists(info_plist_in_resources):
|
||||||
info_plist_in_contents = os.path.join(os.path.split(path)[0], '..', '..', 'Contents', 'Info.plist')
|
info_plist_in_contents = os.path.join(os.path.split(path)[0], '..', '..', 'Resources', 'Info.plist')
|
||||||
framework_resources_dir = os.path.join(full_path, '..', '..', 'Resources')
|
framework_resources_dir = os.path.join(full_path, '..', '..', 'Resources')
|
||||||
args = ['mkdir', '-p', framework_resources_dir]
|
args = ['mkdir', '-p', framework_resources_dir]
|
||||||
commands.append(args)
|
commands.append(args)
|
||||||
if os.path.exists(info_plist_in_contents):
|
if os.path.exists(info_plist_in_contents):
|
||||||
args = ['cp', '-rf', info_plist_in_contents, framework_resources_dir]
|
args = ['cp', '-rf', info_plist_in_contents, framework_resources_dir]
|
||||||
commands.append(args)
|
commands.append(args)
|
||||||
|
args = ['chmod', '+rw', os.path.join(framework_resources_dir, 'Info.plist')]
|
||||||
|
commands.append(args)
|
||||||
else:
|
else:
|
||||||
print "%s: Framework does not contain an Info.plist file in Contents/ or Resources/ folder." % (path)
|
print "%s: Framework does not contain an Info.plist file in Resources/ folder." % (path)
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
return os.path.join(full_path, parts[-1])
|
return os.path.join(full_path, parts[-1])
|
||||||
|
Reference in New Issue
Block a user