mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 13:35:31 +00:00
Strip the binaries before signing them, in release configuration
This commit is contained in:
parent
ed30c80c5c
commit
35ec0075cf
|
@ -23,12 +23,19 @@ if [[ $RESULT != 0 ]] ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "Found: ${FRAMEWORKS}"
|
||||
|
||||
for FRAMEWORK in $FRAMEWORKS;
|
||||
do
|
||||
if [[ "$CONFIGURATION" = "Release" ]]; then
|
||||
echo "Stripping '${FRAMEWORK}'"
|
||||
NAME=$(basename "${FRAMEWORK}" .framework)
|
||||
xcrun strip -x "${FRAMEWORK}/${NAME}"
|
||||
RESULT=$?
|
||||
if [[ $RESULT != 0 ]] ; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
echo "Signing '${FRAMEWORK}'"
|
||||
`codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"`
|
||||
codesign -f -v -s "${CODE_SIGN_IDENTITY}" "${FRAMEWORK}"
|
||||
RESULT=$?
|
||||
if [[ $RESULT != 0 ]] ; then
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue