Skip to content

Commit

Permalink
Add forced resigning of SDL2 outputs after stripping (dotnet#2174)
Browse files Browse the repository at this point in the history
* Add forced resigning of SDL2 outputs after stripping

* Prevent warnings, as we know what we're doing
  • Loading branch information
joskuijpers committed May 10, 2024
1 parent 8029186 commit af82a30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/nuke/Native/SDL2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,11 @@ partial class Build
EnsureCleanDirectory(Path.GetDirectoryName(@out));
InheritedShell($"lipo -create -output \"{@out}\" \"{@in}\"").AssertZeroExitCode();
InheritedShell($"strip -Sx \"{@out}\"").AssertZeroExitCode();
InheritedShell($"strip -Sx -no_code_signature_warning \"{@out}\"").AssertZeroExitCode();
// Re-sign, as lipo and stripping invalidates the signature
InheritedShell($"codesign --remove-signature \"{@out}\"").AssertZeroExitCode();
InheritedShell($"codesign --sign - \"{@out}\"").AssertZeroExitCode();
}
}
Expand Down

0 comments on commit af82a30

Please sign in to comment.