forked from knightsc/USBApp
-
Notifications
You must be signed in to change notification settings - Fork 2
/
codesign.sh
executable file
·30 lines (21 loc) · 874 Bytes
/
codesign.sh
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/bash
# Use this to find your certificate identity:
# security find-identity
#
readonly CODE_SIGN_IDENTITY=AF81FE1962517ECAABF73719286C4829C4C06EA5
set -e
set -x
security unlock-keychain -p '{}' /Users/${USER}/Library/Keychains/login.keychain
codesign --sign $CODE_SIGN_IDENTITY \
--entitlements MyUserUSBInterfaceDriver/MyUserUSBInterfaceDriver.entitlements \
--options runtime --verbose --force \
build/Debug/USBApp.app/Contents/Library/SystemExtensions/sc.knight.MyUserUSBInterfaceDriver.dext
codesign --verify --verbose \
build/Debug/USBApp.app/Contents/Library/SystemExtensions/sc.knight.MyUserUSBInterfaceDriver.dext
codesign --sign $CODE_SIGN_IDENTITY \
--entitlements USBApp/USBApp.entitlements \
--options runtime --verbose --force \
build/Debug/USBApp.app
codesign \
--verify --verbose \
build/Debug/USBApp.app