Skip to content

Commit af82a30

Browse files
authored
Add forced resigning of SDL2 outputs after stripping (#2174)
* Add forced resigning of SDL2 outputs after stripping * Prevent warnings, as we know what we're doing
1 parent 8029186 commit af82a30

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/nuke/Native/SDL2.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ static readonly (string Sdk, string Arch, string Rid, string Args)[] iPhoneConfi
127127

128128
EnsureCleanDirectory(Path.GetDirectoryName(@out));
129129
InheritedShell($"lipo -create -output \"{@out}\" \"{@in}\"").AssertZeroExitCode();
130-
InheritedShell($"strip -Sx \"{@out}\"").AssertZeroExitCode();
130+
InheritedShell($"strip -Sx -no_code_signature_warning \"{@out}\"").AssertZeroExitCode();
131+
132+
// Re-sign, as lipo and stripping invalidates the signature
133+
InheritedShell($"codesign --remove-signature \"{@out}\"").AssertZeroExitCode();
134+
InheritedShell($"codesign --sign - \"{@out}\"").AssertZeroExitCode();
131135
}
132136
}
133137

0 commit comments

Comments
 (0)