nextcloud-desktop/admin/osx/sign_app.sh
2015-04-16 16:35:09 +02:00

12 lines
251 B
Bash
Executable file

#!/bin/sh -xe
[ "$#" -lt 2 ] && echo "Usage: sign_app.sh <app> <identity>" && exit
src_app="$1"
identity="$2"
codesign -s "$identity" --force --verbose=4 --deep "$src_app"
# Verify the signature
spctl -a -t exec -vv $src_app
codesign -dv $src_app