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 all 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

# $CODE_SIGN_IDENTITY should be the signing identity whose key is available in
# the keychain. For example, `Node.js Foundation`.
if [[ -n $CODE_SIGN_IDENTITY ]]; then
echo "No CODE_SIGN_IDENTITY environment variable, skipping codesigning" >&2
else
codesign \
--sign "$CODE_SIGN_IDENTITY" \
--options runtime \
--timestamp \
term-size
fi