[gn + codesign] use join to concatenate (flutter/engine#35474)

This commit is contained in:
Xilai Zhang
2022-08-17 17:55:36 -07:00
committed by GitHub
parent 7c251fd312
commit bf91ad79d0

View File

@@ -167,14 +167,14 @@ def create_framework(
def embed_codesign_configuration(config_path, contents):
with open(config_path, 'w') as f:
f.writelines(contents)
f.write('\n'.join(contents) + '\n')
def zip_archive(dst):
ios_file_with_entitlements = ['gen_snapshot_arm64\n']
ios_file_with_entitlements = ['gen_snapshot_arm64']
ios_file_without_entitlements = [
'Flutter.xcframework/ios-arm64/Flutter.framework/Flutter\n',
'Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter\n'
'Flutter.xcframework/ios-arm64/Flutter.framework/Flutter',
'Flutter.xcframework/ios-arm64_x86_64-simulator/Flutter.framework/Flutter'
]
embed_codesign_configuration(
os.path.join(dst, 'entitlements.txt'), ios_file_with_entitlements