2020-11-15 01:30:45 +08:00
|
|
|
#!/bin/sh
|
2012-08-03 04:35:41 +08:00
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2020-11-15 01:30:45 +08:00
|
|
|
# shellcheck disable=SC2154
|
|
|
|
[ -z "$SIGN" ] && \
|
|
|
|
echo "No SIGN environment var. Skipping codesign." >&2 && \
|
2012-08-03 04:35:41 +08:00
|
|
|
exit 0
|
|
|
|
|
2020-11-15 01:30:45 +08:00
|
|
|
# shellcheck disable=SC2154
|
2012-08-03 04:35:41 +08:00
|
|
|
productsign --sign "$SIGN" "$PKG" "$PKG"-SIGNED
|
2020-11-15 01:30:45 +08:00
|
|
|
# shellcheck disable=SC2154
|
2012-08-03 04:35:41 +08:00
|
|
|
mv "$PKG"-SIGNED "$PKG"
|