Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codesign and harden the binary #3

Merged
merged 4 commits into from
Feb 3, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions build
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
#!/usr/bin/env sh

set -e
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
rvagg marked this conversation as resolved.
Show resolved Hide resolved
echo "No SIGN environment variable, skipping codesign" >&2
else
codesign \
--sign "$SIGN" \
--options runtime \
--timestamp \
term-size
fi