• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -x
4set -e
5
6if [ "X$SIGN" == "X" ]; then
7  echo "No SIGN environment var.  Skipping codesign." >&2
8  exit 0
9fi
10
11# All macOS executable binaries in the bundle must be codesigned with the
12# hardened runtime enabled.
13# See https://github.com/nodejs/node/pull/31459
14
15codesign \
16  --sign "$SIGN" \
17  --entitlements tools/osx-entitlements.plist \
18  --options runtime \
19  --timestamp \
20  "$PKGDIR"/bin/node
21