summaryrefslogtreecommitdiff
path: root/tools/osx-productsign.sh
blob: 491e3fde62f0b44898d20bd80184aba5aed6ea34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

set -x
set -e

if [ "X$SIGN" == "X" ]; then
  echo "No SIGN environment var.  Skipping codesign." >&2
  exit 0
fi

productsign --sign "$SIGN" "$PKG" "$PKG"-SIGNED
mv "$PKG"-SIGNED "$PKG"