mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix dSYM collection
(cherry picked from commit 78b0c5f50977036546c946646d24e3d34445b281)
This commit is contained in:
parent
7319b8ec6f
commit
e9d50f34de
@ -608,7 +608,7 @@ def build(bazel, arguments):
|
|||||||
if arguments.outputBuildArtifactsPath is not None:
|
if arguments.outputBuildArtifactsPath is not None:
|
||||||
artifacts_path = os.path.abspath(arguments.outputBuildArtifactsPath)
|
artifacts_path = os.path.abspath(arguments.outputBuildArtifactsPath)
|
||||||
if os.path.exists(artifacts_path + '/Telegram.ipa'):
|
if os.path.exists(artifacts_path + '/Telegram.ipa'):
|
||||||
os.remove(path)
|
os.remove(artifacts_path + '/Telegram.ipa')
|
||||||
if os.path.exists(artifacts_path + '/DSYMs'):
|
if os.path.exists(artifacts_path + '/DSYMs'):
|
||||||
shutil.rmtree(artifacts_path + '/DSYMs')
|
shutil.rmtree(artifacts_path + '/DSYMs')
|
||||||
os.makedirs(artifacts_path, exist_ok=True)
|
os.makedirs(artifacts_path, exist_ok=True)
|
||||||
@ -624,7 +624,7 @@ def build(bazel, arguments):
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
shutil.copyfile(ipa_paths[0], artifacts_path + '/Telegram.ipa')
|
shutil.copyfile(ipa_paths[0], artifacts_path + '/Telegram.ipa')
|
||||||
|
|
||||||
dsym_paths = glob.glob('bazel-bin/Telegram/**/*.dSYM')
|
dsym_paths = glob.glob('bazel-bin/Telegram/*.dSYM')
|
||||||
for dsym_path in dsym_paths:
|
for dsym_path in dsym_paths:
|
||||||
file_name = os.path.basename(dsym_path)
|
file_name = os.path.basename(dsym_path)
|
||||||
shutil.copytree(dsym_path, artifacts_path + '/DSYMs/{}'.format(file_name))
|
shutil.copytree(dsym_path, artifacts_path + '/DSYMs/{}'.format(file_name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user