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

Commit 2fdce9a

Browse files
authored
Revert "[gn + codesign] mac code sign configuration for FlutterMacOS.framework.zip (#35707)" (#39735)
This reverts commit 9c6993e.
1 parent 9c6993e commit 2fdce9a

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

sky/tools/create_macos_framework.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ def regenerate_symlinks(fat_framework):
127127
)
128128

129129

130-
def embed_codesign_configuration(config_path, content):
131-
with open(config_path, 'w') as f:
132-
f.write(content)
133-
134-
135130
def process_framework(dst, args, fat_framework, fat_framework_binary):
136131
if args.dsym:
137132
dsym_out = os.path.splitext(fat_framework)[0] + '.dSYM'
@@ -151,25 +146,9 @@ def process_framework(dst, args, fat_framework, fat_framework_binary):
151146

152147
# Zip FlutterMacOS.framework.
153148
if args.zip:
154-
macos_filepath_with_entitlements = ''
155-
macos_filepath_without_entitlements = 'FlutterMacOS.framework/Versions/A/FlutterMacOS'
156-
157-
embed_codesign_configuration(
158-
os.path.join(dst, 'entitlements.txt'), macos_filepath_with_entitlements
159-
)
160-
161-
embed_codesign_configuration(
162-
os.path.join(dst, 'without_entitlements.txt'),
163-
macos_filepath_without_entitlements
164-
)
165149
subprocess.check_call([
166-
'zip',
167-
'-r',
168-
'-y',
169-
'FlutterMacOS.framework.zip',
170-
'FlutterMacOS.framework',
171-
'entitlements.txt',
172-
'without_entitlements.txt',
150+
'zip', '-r', '-y', 'FlutterMacOS.framework.zip',
151+
'FlutterMacOS.framework'
173152
],
174153
cwd=dst)
175154

0 commit comments

Comments
 (0)