Skip to content

Commit

Permalink
fixup! Include codesign option with runtime hardening
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Feb 3, 2020
1 parent 15cc811 commit 5d966ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ set -x

clang -Ofast -Wall -Wextra -Werror -pedantic -std=c99 term-size.c -o term-size

# $SIGN should be the signing identity whose key is available in the keychain,
# e.g. "Node.js Foundation"
if [ "X$SIGN" == "X" ]; then
echo "No SIGN environment variable, skipping codesign" >&2
# $CODE_SIGN_IDENTITY should be the signing identity whose key is available in
# the keychain, e.g. "Node.js Foundation"
if [[ -n $CODE_SIGN_IDENTITY ]]; then
echo "No CODE_SIGN_IDENTITY environment variable, skipping codesign" >&2
else
codesign \
--sign "$SIGN" \
--sign "$CODE_SIGN_IDENTITY" \
--options runtime \
--timestamp \
term-size
Expand Down

0 comments on commit 5d966ef

Please sign in to comment.