Having Trouble with Improperly Signed Update
Hi
I'm having an issue where sparkle keeps saying I have an improperly signed update, I've been playing with for a week now and getting nowhere so thought I'd throw a question up here and see if anybody can spot something obvious that i'm doing wrong.
My script below (the links in the script are invalid as i took down the files after testing) is borrowed and altered slighly from several on the web and seem to work fine in that it generates my DMG and the item listing for my appcast with a signature.
As per the sparkle documentation I report the size as the size of the app not the DMG file although I've done both while trying to get this work to no avail.
Any help gratefully received, is there something obviously wrong with this? I've looked at some of the similar questions to my own and can't find the answer.
set -o errexit
[ $BUILD_STYLE = Release ] || { echo Distribution target requires "'Release'" build style; false; }
VERSION=$(defaults read "$BUILT_
VERSION_
DOWNLOAD_BASE_URL="http://
RELEASENOTES_URL="http://
DMG_FILENAME=
APPCAST_
APPCAST_
DOWNLOAD_
KEYCHAIN_
TMP_IMAGE_
WD=$PWD
cd "$BUILT_
rm -f "$PROJECT_
rm -f *"$APPCAST_
rm -rf "$TMP_IMAGE_DIR"
mkdir "$TMP_IMAGE_DIR"
cp -R "$BUILT_
rm -f "$dmg"
hdiutil create -srcfolder "$TMP_IMAGE_DIR" -volname "$PROJECT_NAME" "$DMG_FILENAME"
hdiutil internet-enable -yes "$DMG_FILENAME"
rm -rf "$TMP_IMAGE_DIR"
SIZE=$(stat -f %z "$BUILT_
PUBDATE=$(date +"%a, %d %b %G %T %z")
SIGNATURE=$(
openssl dgst -sha1 -binary < "$DMG_FILENAME" \
| openssl dgst -dss1 -sign <(security find-generic-
| openssl enc -base64
)
[ $SIGNATURE ] || { echo Unable to load signing private key with name "'$KEYCHAIN_
echo "
<item>
<title>Release $VERSION_STRING </title>
<sparkle:
<pubDate>
<enclosure
url=
sparkle:
sparkle:
type=
length=
sparkle:
/>
</item>
" > $APPCAST_
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Sparkle Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Andy Matuschak
- Solved:
- Last query:
- Last reply: