Skip to content

Commit d55f658

Browse files
codesign binaries after running otool because running otool makes previous signatures invalid.
1 parent 9c25d81 commit d55f658

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

external/buildscripts/build_all_osx.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ sub MergeIntoFatBinary
181181

182182
if ($isExe)
183183
{
184-
system("codesign", "--entitlements", $buildscriptsdir . "/entitlements.plist", "-s", "-", "$binaryOutput") eq 0 or die("Failed to codesign $binaryOutput!");
184+
system("codesign", "--entitlements", $buildscriptsdir . "/entitlements.plist", "-s", "-", "-f", "$binaryOutput") eq 0 or die("Failed to codesign $binaryOutput!");
185185
}
186186
else
187187
{
188-
system("codesign", "-s", "-", "$binaryOutput") eq 0 or die("Failed to codesign $binaryOutput!");
188+
system("codesign", "-s", "-", "-f", "$binaryOutput") eq 0 or die("Failed to codesign $binaryOutput!");
189189
}
190190
}

external/buildscripts/perl_lib/Tools.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ sub InstallNameTool
2222
system("install_name_tool -id $pathtoburnin $target") eq 0 or die("Failed running install_name_tool");
2323
print "running otool after:\n";
2424
system("otool","-L",$target);
25+
26+
print "running codesign on $target:\n";
27+
system("codesign", "-s", "-", "-f", $target);
2528
}
2629

2730
sub GitClone

0 commit comments

Comments
 (0)