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

set -x
set -e

if ! [ -n "$SIGN" ] && [ $STEP -eq 1 ]; then
  echo "No SIGN environment var.  Skipping codesign." >&2
  exit 0
fi

codesign -s "$SIGN" "$PKGDIR"/usr/local/bin/node
codesign -s "$SIGN" "$PKGDIR"/32/usr/local/bin/node