Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
simplify structure
  • Loading branch information
XilaiZhang committed Feb 17, 2023
commit a5651548f61146def2ef889ae740a1f78f73e3d3
40 changes: 14 additions & 26 deletions sky/tools/create_macos_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,36 +151,24 @@ def process_framework(dst, args, fat_framework, fat_framework_binary):

# Zip FlutterMacOS.framework.
if args.zip:
macos_filepath_with_entitlements = ''
macos_filepath_without_entitlements = 'FlutterMacOS.framework/Versions/A/FlutterMacOS'

embed_codesign_configuration(
os.path.join(dst, 'entitlements.txt'), macos_filepath_with_entitlements
)

embed_codesign_configuration(
os.path.join(dst, 'without_entitlements.txt'),
macos_filepath_without_entitlements
)
subprocess.check_call([
'zip', '-r', '-y', 'FlutterMacOS.framework.zip',
'FlutterMacOS.framework'
'FlutterMacOS.framework',
'entitlements.txt',
'without_entitlements.txt',
],
cwd=dst)

macos_filepath_with_entitlements = ''
macos_filepath_without_entitlements = 'FlutterMacOS.framework/Versions/A/FlutterMacOS'

embed_codesign_configuration(
os.path.join(dst, 'entitlements.txt'), macos_filepath_with_entitlements
)

embed_codesign_configuration(
os.path.join(dst, 'without_entitlements.txt'),
macos_filepath_without_entitlements
)

# Zip FlutterMacOS.framework.
subprocess.check_call([
'zip',
'-r',
'-y',
'FlutterMacOS.framework.zip',
'FlutterMacOS.framework',
'entitlements.txt',
'without_entitlements.txt',
],
cwd=dst)


if __name__ == '__main__':
sys.exit(main())