Revert "[gn + codesign] mac code sign configuration for FlutterMacOS.framework.zip (#35707)" (flutter/engine#39735)
This reverts commit 729d2ae140.
This commit is contained in:
@@ -127,11 +127,6 @@ def regenerate_symlinks(fat_framework):
|
||||
)
|
||||
|
||||
|
||||
def embed_codesign_configuration(config_path, content):
|
||||
with open(config_path, 'w') as f:
|
||||
f.write(content)
|
||||
|
||||
|
||||
def process_framework(dst, args, fat_framework, fat_framework_binary):
|
||||
if args.dsym:
|
||||
dsym_out = os.path.splitext(fat_framework)[0] + '.dSYM'
|
||||
@@ -151,25 +146,9 @@ def process_framework(dst, args, fat_framework, fat_framework_binary):
|
||||
|
||||
# Zip FlutterMacOS.framework.
|
||||
if args.zip:
|
||||
macos_filepath_with_entitlements = ''
|
||||
macos_filepath_without_entitlements = 'FlutterMacOS.framework/Versions/A/FlutterMacOS'
|
||||
|
||||
embed_codesign_configuration(
|
||||
os.path.join(dst, 'entitlements.txt'), macos_filepath_with_entitlements
|
||||
)
|
||||
|
||||
embed_codesign_configuration(
|
||||
os.path.join(dst, 'without_entitlements.txt'),
|
||||
macos_filepath_without_entitlements
|
||||
)
|
||||
subprocess.check_call([
|
||||
'zip',
|
||||
'-r',
|
||||
'-y',
|
||||
'FlutterMacOS.framework.zip',
|
||||
'FlutterMacOS.framework',
|
||||
'entitlements.txt',
|
||||
'without_entitlements.txt',
|
||||
'zip', '-r', '-y', 'FlutterMacOS.framework.zip',
|
||||
'FlutterMacOS.framework'
|
||||
],
|
||||
cwd=dst)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user