Skip to content

Commit 53132d6

Browse files
committed
another code signing fix in make.mac
1 parent 65b0396 commit 53132d6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

make/mac.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def build_dmg(self):
132132
#self.copy_tree(self.bundle_dir, dest_dir)
133133
shutil.copytree(self.bundle_dir, dest_dir, symlinks=True)
134134

135+
# seems we have to sign *again*, for some reason
136+
subprocess.run(['codesign', '--force', '--deep', '--sign', '-', dest_dir])
137+
135138
### added
136139
# include the docs at them top level in the dmg
137140
shutil.copy('build/doc/PC-BASIC_documentation.html', self.dist_dir)
@@ -202,4 +205,4 @@ def build_dmg(self):
202205
# run the cx_Freeze setup()
203206
cx_Freeze.setup(script_args=['bdist_dmg'], **setup_options)
204207
# cx_Freeze's codesign options result in failure with "app is already signed", so trying here
205-
subprocess.run(['codesign', '-s', '-', '--deep', f'dist/PC-BASIC-{VERSION}.dmg'])
208+
#subprocess.run(['codesign', '-s', '-', '--deep', f'dist/PC-BASIC-{VERSION}.dmg'])

0 commit comments

Comments
 (0)