Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit fa86e2d

Browse files
authored
Zip FlutterMacOS.framework. (#35623)
1 parent dc14649 commit fa86e2d

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

sky/tools/create_macos_framework.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ def process_framework(dst, args, fat_framework, fat_framework_binary):
102102
dsym_out = os.path.splitext(fat_framework)[0] + '.dSYM'
103103
subprocess.check_call([DSYMUTIL, '-o', dsym_out, fat_framework_binary])
104104
subprocess.check_call([
105-
'zip', '-r',
106-
'%s/FlutterMacOS.dSYM.zip' % dst,
107-
'%s/FlutterMacOS.dSYM/Contents' % dst
108-
])
105+
'zip', '-r', 'FlutterMacOS.dSYM.zip', 'FlutterMacOS.dSYM'
106+
],
107+
cwd=dst)
109108

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

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

116+
# Zip FlutterMacOS.framework.
117+
subprocess.check_call([
118+
'zip', '-r', 'FlutterMacOS.framework.zip', 'FlutterMacOS.framework'
119+
],
120+
cwd=dst)
121+
117122

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

0 commit comments

Comments
 (0)