mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix dSYM collection
This commit is contained in:
parent
f2f3827bd5
commit
78b0c5f509
@ -608,7 +608,7 @@ def build(bazel, arguments):
|
||||
if arguments.outputBuildArtifactsPath is not None:
|
||||
artifacts_path = os.path.abspath(arguments.outputBuildArtifactsPath)
|
||||
if os.path.exists(artifacts_path + '/Telegram.ipa'):
|
||||
os.remove(path)
|
||||
os.remove(artifacts_path + '/Telegram.ipa')
|
||||
if os.path.exists(artifacts_path + '/DSYMs'):
|
||||
shutil.rmtree(artifacts_path + '/DSYMs')
|
||||
os.makedirs(artifacts_path, exist_ok=True)
|
||||
@ -624,7 +624,7 @@ def build(bazel, arguments):
|
||||
sys.exit(1)
|
||||
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:
|
||||
file_name = os.path.basename(dsym_path)
|
||||
shutil.copytree(dsym_path, artifacts_path + '/DSYMs/{}'.format(file_name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user