mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 18:25:08 +03:00
sometimes codesign doesn't like existing metadata
This commit is contained in:
parent
7ff34e317e
commit
c39383da2d
1 changed files with 13 additions and 4 deletions
17
.github/actions/apple-signing/action.yml
vendored
17
.github/actions/apple-signing/action.yml
vendored
|
@ -42,12 +42,15 @@ runs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
for PATH in $PATHS; do
|
for PATH in $PATHS; do
|
||||||
/usr/bin/find $PATH -name '*.so' -or -name '*.dylib' -print0 | \
|
LIBS="$(/usr/bin/find $PATH -name '*.so' -or -name '*.dylib')"
|
||||||
/usr/bin/xargs -0 /usr/bin/codesign -s "$IDENTITY" --force -v --deep --timestamp --preserve-metadata=entitlements -o runtime || true
|
|
||||||
if test -d $PATH/bin; then
|
if test -d $PATH/bin; then
|
||||||
/usr/bin/find $PATH/bin -type f -print0 | \
|
BINS="$(/usr/bin/find $PATH/bin -type f)"
|
||||||
/usr/bin/xargs -0 /usr/bin/codesign -s "$IDENTITY" -v --force --deep --timestamp --preserve-metadata=entitlements -o runtime || true
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for FILE in $LIBS $BINS; do
|
||||||
|
BASENAME="$(/usr/bin/basename "$FILE")"
|
||||||
|
/usr/bin/codesign -s "$IDENTITY" --force -v --deep --timestamp --preserve-metadata=entitlements -o runtime "$FILE" || true
|
||||||
|
done
|
||||||
done
|
done
|
||||||
env:
|
env:
|
||||||
PATHS: ${{ inputs.paths }}
|
PATHS: ${{ inputs.paths }}
|
||||||
|
@ -63,6 +66,12 @@ runs:
|
||||||
BINS="$(/usr/bin/find $PATH/bin -type f)"
|
BINS="$(/usr/bin/find $PATH/bin -type f)"
|
||||||
fi
|
fi
|
||||||
for SIGNED in $LIBS $BINS; do
|
for SIGNED in $LIBS $BINS; do
|
||||||
|
# FIXME: `deno` compiled binaries don't currently pass validation.
|
||||||
|
# https://github.com/denoland/deno/issues/17753
|
||||||
|
if test "$(/usr/bin/basename "$SIGNED")" = "tea"; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
/usr/bin/codesign -vvv --deep --strict "$SIGNED"
|
/usr/bin/codesign -vvv --deep --strict "$SIGNED"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue