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
format files
  • Loading branch information
XilaiZhang committed Aug 25, 2022
commit 2198a078017d569f18bf6854498083fbf76d4ea2
8 changes: 7 additions & 1 deletion sky/tools/create_macos_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,12 @@ def main():
return 1
process_framework(dst, args, fat_framework, fat_framework_binary)


def embed_codesign_configuration(config_path, content):
with open(config_path, 'w') as f:
f.write(content)


def process_framework(dst, args, fat_framework, fat_framework_binary):
if args.dsym:
dsym_out = os.path.splitext(fat_framework)[0] + '.dSYM'
Expand Down Expand Up @@ -131,7 +133,11 @@ def process_framework(dst, args, fat_framework, fat_framework_binary):

# Zip FlutterMacOS.framework.
subprocess.check_call([
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the resolution for #35623 that was reverted here #35680, because it was expected to not have entitlements? I'm not sure how these without_entitlements files work.

https://github.com/flutter/flutter/blob/fefb2b00bab8548e66aa09849dbd51c4b9c357d1/dev/conductor/core/lib/src/codesign.dart#L188

@christopherfujino

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry didn't realize there is an engine PR review on Thursday. These without_entiltements and 'entitlements.txt` are just text files embedded in the zip artifacts, not going to affect the correctness of anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inspecting locally, looks like the symlinks are dropped in the build process. Current assumption is based on #35673.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this ready for review?

'zip', '-r', 'FlutterMacOS.framework.zip', 'FlutterMacOS.framework', 'entitlements.txt',
'zip',
'-r',
'FlutterMacOS.framework.zip',
'FlutterMacOS.framework',
'entitlements.txt',
'without_entitlements.txt',
],
cwd=dst)
Expand Down