Zip FlutterMacOS.framework. (flutter/engine#35623)

This commit is contained in:
godofredoc
2022-08-24 09:42:50 -07:00
committed by GitHub
parent 28cc021a11
commit eb8b77ae0c

View File

@@ -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
@@ -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())