-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodesign.sh
More file actions
executable file
·30 lines (20 loc) · 830 Bytes
/
Copy pathcodesign.sh
File metadata and controls
executable file
·30 lines (20 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
self_dir=$(/usr/bin/dirname "$0")
identity="$1"
if test -z "$identity"; then
identity="-"
timestamp="--timestamp=none"
sign_options=""
else
timestamp="--timestamp"
sign_options="--options runtime"
fi
app_to_sign="$self_dir/build/Release/replay"
app_id="com.abracode.replay"
/usr/bin/codesign --verbose --force $sign_options $timestamp --identifier "$app_id" --sign "$identity" "$app_to_sign"
app_to_sign="$self_dir/build/Release/dispatch"
app_id="com.abracode.dispatch"
/usr/bin/codesign --verbose --force $sign_options $timestamp --identifier "$app_id" --sign "$identity" "$app_to_sign"
app_to_sign="$self_dir/build/Release/fingerprint"
app_id="com.abracode.fingerprint"
/usr/bin/codesign --verbose --force $sign_options $timestamp --identifier "$app_id" --sign "$identity" "$app_to_sign"