mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-16 16:32:47 +00:00
macdeploy: subprocess out to zip rather than shutil.make_archive
Calling shutil.make_archive(), does not preserve symlinks when using the zip format, see https://github.com/python/cpython/issues/139679. Call `zip` using subprocess instead. This code is only run when using a macos machine, and I think it's safe to assume that zip is available, same as codesign, and all other tools we call in this script.
This commit is contained in:
parent
b62abc7eec
commit
ab137cbfe2
@ -499,7 +499,7 @@ if config.zip is not None:
|
||||
print("+ Removing existing .zip +")
|
||||
os.unlink(name + ".zip")
|
||||
|
||||
shutil.make_archive('{}'.format(name), format='zip', root_dir='dist', base_dir='Bitcoin-Qt.app')
|
||||
subprocess.check_call(["zip", "-ry", os.path.abspath(name + ".zip"), 'Bitcoin-Qt.app'], cwd='dist')
|
||||
|
||||
# ------------------------------------------------
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user