Skip to content

Commit

Permalink
macOS: Fix deployment of custom SDL2
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 29, 2021
1 parent 23b23aa commit f1fa5e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/build/scripts/deploy_apple.py
Expand Up @@ -66,12 +66,15 @@
subprocess.check_call([name_cmd, '-change', old_path, new_path, path])
avail_fws = os.listdir(os.path.join(root, 'Frameworks'))
def base_name(fn):
end_pos = fn.find('-')
if end_pos > 0: return fn[:end_pos]
return fn[:fn.find('.')]
for lib in libraries:
if not os.path.exists(os.path.join(root, 'Frameworks', lib)):
print('%s: missing link' % lib)
name = base_name(lib)
for avail in avail_fws:
#print('got', avail, 'base:', base_name(avail), 'name:', name, 'matching:', base_name(avail) == name)
if base_name(avail) == name:
print(' -> to %s' % avail)
subprocess.check_call([ln_cmd, '-s',
Expand Down

0 comments on commit f1fa5e6

Please sign in to comment.