Skip to content

Instantly share code, notes, and snippets.

@prenagha
Last active January 27, 2022 17:30
Show Gist options
  • Save prenagha/2d72121ad7478559e8c3 to your computer and use it in GitHub Desktop.
Save prenagha/2d72121ad7478559e8c3 to your computer and use it in GitHub Desktop.
Launchbar Action package script
#!/bin/bash
#
# code sign and package each launchbar action then push
# to dropbox folder for public distribution
#
# first make sure everything is compiled
# see https://gist.github.com/prenagha/404284fee1b8ff86aec5
~/bin/compile-applescript.sh
if [ $? -ne 0 ]
then
exit $?
fi
# point to exact developer certificate name in Keychain
KEY="Foo Developer: John Smith (M3G3E5WD34)"
LBDEV=~/Dev/launchbar
DIST=~/Dropbox/Public/lbdist
cd $LBDEV
for ACTION in *.lbaction
do
echo "Signing $ACTION ..."
codesign --force --sign "$KEY" "$ACTION"
if [ $? -ne 0 ]
then
echo "Error signing $ACTION" 1>&2
exit $?
fi
rm -f "$DIST/$ACTION" 2>/dev/null
zip -r -q "$DIST/$ACTION" "$ACTION"
echo " $ACTION signed and distributed"
done
exit 0
@prenagha
Copy link
Author

Note: no longer used. I use DownGit to distribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment