From 1c5c7052b907883073cb3bd222427adb8acac9e4 Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Wed, 24 Aug 2022 13:24:16 -0700 Subject: [PATCH] Revert "Zip FlutterMacOS.framework. (#35623)" (#35680) This reverts commit fa86e2d8279ca7ab3c441f3857c726789cc8002b. --- sky/tools/create_macos_framework.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/sky/tools/create_macos_framework.py b/sky/tools/create_macos_framework.py index 7f6200070391e..c34e20216ca1d 100755 --- a/sky/tools/create_macos_framework.py +++ b/sky/tools/create_macos_framework.py @@ -102,9 +102,10 @@ 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', 'FlutterMacOS.dSYM.zip', 'FlutterMacOS.dSYM' - ], - cwd=dst) + 'zip', '-r', + '%s/FlutterMacOS.dSYM.zip' % dst, + '%s/FlutterMacOS.dSYM/Contents' % dst + ]) if args.strip: # copy unstripped @@ -113,12 +114,6 @@ 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())