2012-08-03 04:35:41 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2015-06-10 15:05:26 +08:00
|
|
|
if [ "X$SIGN" == "X" ]; then
|
2012-08-03 04:35:41 +08:00
|
|
|
echo "No SIGN environment var. Skipping codesign." >&2
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
productsign --sign "$SIGN" "$PKG" "$PKG"-SIGNED
|
|
|
|
mv "$PKG"-SIGNED "$PKG"
|