0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-25 08:19:38 +01:00
nodejs/tools/osx-productsign.sh
isaacs 2dd710e7ea build: Sign pkg installer for OS X
This makes the installer work on Mountain Lion.
2012-08-02 13:56:50 -07:00

13 lines
197 B
Bash

#!/bin/bash
set -x
set -e
if ! [ -n "$SIGN" ]; then
echo "No SIGN environment var. Skipping codesign." >&2
exit 0
fi
productsign --sign "$SIGN" "$PKG" "$PKG"-SIGNED
mv "$PKG"-SIGNED "$PKG"