summaryrefslogtreecommitdiff
path: root/tools/osx-productsign.sh
blob: 4834c9bbb8769c18bb8cd6c27221895feae67f94 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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"