-
Notifications
You must be signed in to change notification settings - Fork 0
/
sign
executable file
·42 lines (33 loc) · 864 Bytes
/
sign
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
31
32
33
34
35
36
37
38
39
#!/bin/bash
#
# sign 1.0.9
#
# Signs a macOS App
#
# CALL:
# sign appname
#
# (c)2014-2022 Harald Schneider - marketmix.com
#
# Setup.start
#
# The ID of your "Developer ID Application", assigned to your Keyring.
# This is usually your first- and lastname:
#
ID="Your Name"
#
# Setup.end
echo
echo "Signing ..."
codesign --force --deep --timestamp --verbose --options runtime -f --preserve-metadata=identifier,entitlements -s "Developer ID Application: ${ID}" "$1"
echo "-------------------------------------------------"
echo "Verifying (1) ..."
codesign -vvv "$1"
echo "-------------------------------------------------"
echo "Verifying (2) ..."
codesign -dv "$1"
echo "-------------------------------------------------"
echo "Checking Acceptance ..."
spctl -a -t exec -vv "$1"
echo "-------------------------------------------------"
echo "DONE !"