mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-22 00:42:04 +02:00
Fixed copying Info.plist into frameworks.
This commit is contained in:
parent
0b394c812a
commit
27275c47a4
@ -463,16 +463,18 @@ def CopyFramework(path):
|
||||
# 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
|
||||
info_plist_in_resources = os.path.join(os.path.split(path)[0], '..', '..', 'Resources', 'Info.plist')
|
||||
if not os.path.exists(info_plist_in_resources):
|
||||
info_plist_in_contents = os.path.join(os.path.split(path)[0], '..', '..', 'Contents', 'Info.plist')
|
||||
if os.path.exists(info_plist_in_resources):
|
||||
info_plist_in_contents = os.path.join(os.path.split(path)[0], '..', '..', 'Resources', 'Info.plist')
|
||||
framework_resources_dir = os.path.join(full_path, '..', '..', 'Resources')
|
||||
args = ['mkdir', '-p', framework_resources_dir]
|
||||
commands.append(args)
|
||||
if os.path.exists(info_plist_in_contents):
|
||||
args = ['cp', '-rf', info_plist_in_contents, framework_resources_dir]
|
||||
commands.append(args)
|
||||
args = ['chmod', '+rw', os.path.join(framework_resources_dir, 'Info.plist')]
|
||||
commands.append(args)
|
||||
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)
|
||||
|
||||
return os.path.join(full_path, parts[-1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user