diff --git a/sky/tools/create_macos_framework.py b/sky/tools/create_macos_framework.py index c34e20216ca1d..7f6200070391e 100755 --- a/sky/tools/create_macos_framework.py +++ b/sky/tools/create_macos_framework.py @@ -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())