nextcloud-desktop/admin/osx/sign_app.sh

13 lines
251 B
Bash
Raw Normal View History

#!/bin/sh -xe
2014-09-02 18:13:37 +04:00
[ "$#" -lt 2 ] && echo "Usage: sign_app.sh <app> <identity>" && exit
src_app="$1"
identity="$2"
2014-10-01 17:33:20 +04:00
codesign -s "$identity" --force --verbose=4 --deep "$src_app"
2014-09-02 18:13:37 +04:00
# Verify the signature
2014-09-02 18:13:37 +04:00
spctl -a -t exec -vv $src_app
2014-10-01 17:33:20 +04:00
codesign -dv $src_app