summaryrefslogtreecommitdiff
path: root/make_osx_package.sh
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-02-09 19:35:12 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-02-09 19:35:12 -0800
commitc6f9d00be2fdb03dc2dedd0ab454b24477474c61 (patch)
tree682a44dafb8c7d4c50ef450f6f217b97d878ad4b /make_osx_package.sh
parentdf58bc82129e8d94c0205ee6501da0f8c7451101 (diff)
make_osx_package.sh: Added step to check validity of signature.
Diffstat (limited to 'make_osx_package.sh')
-rwxr-xr-xmake_osx_package.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/make_osx_package.sh b/make_osx_package.sh
index 0df8a6936..4e1acc81d 100755
--- a/make_osx_package.sh
+++ b/make_osx_package.sh
@@ -34,6 +34,8 @@ cp COPYING $RESOURCES/License.txt
echo Signing pandoc executable...
codesign --force --sign "$CODESIGNID" $ROOT/usr/local/bin/pandoc
+# make sure it's valid... returns nonzero exit code if it isn't:
+spctl --assess --type execute $ROOT/usr/local/bin/pandoc
echo Creating OSX package...
@@ -49,6 +51,8 @@ sudo $PACKAGEMAKER \
echo Signing package...
sudo codesign --force --sign "$CODESIGNID" $BASE.pkg
+# make sure it's valid...
+spctl --assess --type install $BASE.pkg
echo Creating disk image...