Skip to content

Commit

Permalink
Zip FlutterMacOS.framework. (flutter#35623)
Browse files Browse the repository at this point in the history
  • Loading branch information
godofredoc authored Aug 24, 2022
1 parent dc14649 commit fa86e2d
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions sky/tools/create_macos_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ def process_framework(dst, args, fat_framework, fat_framework_binary):
dsym_out = os.path.splitext(fat_framework)[0] + '.dSYM'
subprocess.check_call([DSYMUTIL, '-o', dsym_out, fat_framework_binary])
subprocess.check_call([
'zip', '-r',
'%s/FlutterMacOS.dSYM.zip' % dst,
'%s/FlutterMacOS.dSYM/Contents' % dst
])
'zip', '-r', 'FlutterMacOS.dSYM.zip', 'FlutterMacOS.dSYM'
],
cwd=dst)

if args.strip:
# copy unstripped
Expand All @@ -114,6 +113,12 @@ def process_framework(dst, args, fat_framework, fat_framework_binary):

subprocess.check_call(["strip", "-x", "-S", fat_framework_binary])

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


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

0 comments on commit fa86e2d

Please sign in to comment.