mirror of
https://github.com/libretro/mgba.git
synced 2024-11-27 02:00:42 +00:00
Tools: Make deploy-mac work with symlinks
This commit is contained in:
parent
6ad402170c
commit
a3a615fa7f
@ -67,6 +67,15 @@ def parseOtoolLine(line, execPath, root):
|
||||
split[:1] = execPath
|
||||
if split[0] == '/' and not os.access(joinPath(split), os.F_OK):
|
||||
split[:1] = root
|
||||
try:
|
||||
oldPath = joinPath(split)
|
||||
while True:
|
||||
linkPath = os.readlink(os.path.abspath(oldPath))
|
||||
oldPath = os.path.join(os.path.dirname(oldPath), linkPath)
|
||||
except OSError as e:
|
||||
if e.errno != errno.EINVAL:
|
||||
raise
|
||||
split = splitPath(oldPath)
|
||||
isFramework = False
|
||||
if not split[-1].endswith('.dylib'):
|
||||
isFramework = True
|
||||
|
Loading…
Reference in New Issue
Block a user