mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-10 06:31:37 +00:00
build script: do not create symlink to symlink, copy it instead
This commit is contained in:
parent
32747133a3
commit
6a93fec20d
1 changed files with 4 additions and 1 deletions
5
build.py
5
build.py
|
@ -1164,7 +1164,10 @@ class Builder(object):
|
|||
os.makedirs(dst_subpath, exist_ok=True)
|
||||
Builder.symlink_directory(entry.path, dst_subpath, cleanup=False)
|
||||
elif not os.path.exists(dst_subpath):
|
||||
os.symlink(entry.path, dst_subpath)
|
||||
if os.path.islink(entry.path):
|
||||
shutil.copy(entry.path, dst_subpath, follow_symlinks=False)
|
||||
else:
|
||||
os.symlink(entry.path, dst_subpath)
|
||||
|
||||
def _detect_target(self):
|
||||
for name, target in self.targets.items():
|
||||
|
|
Loading…
Reference in a new issue