This commit is contained in:
Brandon DeRosier 2023-02-27 17:23:17 -08:00 committed by GitHub
parent 97d8b0a936
commit a623c8ee4f

View File

@ -68,17 +68,15 @@ def main():
def embed_codesign_configuration(config_path, contents):
with open(config_path, 'w') as f:
f.write('\n'.join(contents) + '\n')
with open(config_path, 'w') as file:
file.write('\n'.join(contents) + '\n')
def zip_archive(dst):
snapshot_filepath_with_entitlements = [
'gen_snapshot_arm64', 'gen_snapshot_x64'
]
snapshot_filepath = ['gen_snapshot_arm64', 'gen_snapshot_x64']
embed_codesign_configuration(
os.path.join(dst, 'entitlements.txt'), snapshot_filepath_with_entitlements
os.path.join(dst, 'entitlements.txt'), snapshot_filepath
)
subprocess.check_call([