Skip to content

Commit

Permalink
Add forced resigning of SDL2 outputs after stripping
Browse files Browse the repository at this point in the history
  • Loading branch information
joskuijpers authored May 10, 2024
1 parent c27224c commit ce05e93
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/nuke/Native/SDL2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ static readonly (string Sdk, string Arch, string Rid, string Args)[] iPhoneConfi
EnsureCleanDirectory(Path.GetDirectoryName(@out));
InheritedShell($"lipo -create -output \"{@out}\" \"{@in}\"").AssertZeroExitCode();
InheritedShell($"strip -Sx \"{@out}\"").AssertZeroExitCode();

// Re-sign, as lipo and stripping invalidates the signature
InheritedShell($"codesign --force --sign - \"{@out}\"").AssertZeroExitCode();
}
}

Expand Down

0 comments on commit ce05e93

Please sign in to comment.