Last active
January 27, 2022 17:30
-
-
Save prenagha/2d72121ad7478559e8c3 to your computer and use it in GitHub Desktop.
Launchbar Action package script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: no longer used. I use DownGit to distribute.