view deploy/sign-plugin @ 30:297711cfb455

Add sign script
author Chris Cannam
date Fri, 13 Dec 2019 10:46:28 +0000
parents
children 6ba82eead9bb
line wrap: on
line source
#!/bin/bash

set -e

if [ -z "$1" ]; then
    echo "Usage: $0 <plugin> [<plugin> ...]" 1>&2
    exit 2
fi

paths=("$@")

set -u

for path in "${paths[@]}"; do
    if [ ! -f "$path" ]; then
        echo "ERROR: Path $path not found" 1>&2
        exit 1
    fi
done

for path in "${paths[@]}"; do

    if [ -d /Applications ]; then
        codesign -s "Developer ID Application: Chris Cannam" -fv --options runtime "$path"
    fi

done

exit 0