-
Notifications
You must be signed in to change notification settings - Fork 6k
Double zip FlutterMacOS.framework.zip. #41306
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -172,6 +172,19 @@ def process_framework(dst, args, fat_framework, fat_framework_binary): | |
| 'without_entitlements.txt', | ||
| ], | ||
| cwd=dst) | ||
| # Double zip to make it consistent with legacy artifacts. | ||
| # TODO(fujino): remove this once https://github.com/flutter/flutter/issues/125067 is resolved | ||
| subprocess.check_call([ | ||
| 'zip', | ||
| '-y', | ||
| 'FlutterMacOS.framework_.zip', | ||
| 'FlutterMacOS.framework.zip', | ||
| ], | ||
| cwd=dst) | ||
| # Use doubled zipped file. | ||
| final_src_path = os.path.join(dst, 'FlutterMacOS.framework_.zip') | ||
| final_dst_path = os.path.join(dst, 'FlutterMacOS.framework.zip') | ||
| shutil.move(final_src_path, final_dst_path) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we delete
I'm not sure what this means.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following that link (https://docs.python.org/3/library/os.html#os.rename): on Unix (which I'm assuming macOS is):
So looks like this should work. |
||
|
|
||
|
|
||
| if __name__ == '__main__': | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.