getting signature improperly signed
Updating an app with the older version of Sparkle to an app with the new version of Sparkle works fine, but when I try to update an app with the new version of Sparkle I get an error that the download is improperly signed. Here is the script I am using as part of the xcode build process to generate the .zip file and the signature and the .xml file, and below that is the generated .xml file. What am I doing wrong?
#!/bin/bash
set -o errexit
VERSION=$(defaults read "$BUILT_
BUILD=$(defaults read "$BUILT_
DOWNLOAD_BASE_URL="http://
RELEASENOTES_URL="http://
UNDERSCORE="_"
ARCHIVE_
DOWNLOAD_
KEYCHAIN_
WD=$PWD
cd "$BUILT_
rm -f "$PROJECT_
zip -qr "$ARCHIVE_FILENAME" "$PROJECT_NAME.app"
SIZE=$(stat -f %z "$ARCHIVE_
PUBDATE=$(date +"%a, %d %b %G %T %z")
(security find-generic-
SIGNATURE=$(openssl dgst -sha1 -binary < "$ARCHIVE_FILENAME" | openssl dgst -dss1 -sign <junk)
[ $SIGNATURE ] || { echo Unable to load signing private key with name "'$KEYCHAIN_
cat <<EOF
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://
<channel>
<link>http://
<item>
<title>Version $VERSION, Build $BUILD</title>
<sparkle:
<pubDate>
<enclosure
url=
sparkle:
sparkle:
type=
length="$SIZE"
sparkle:
/>
</item>
</channel>
</rss>
EOF
rm -f junk
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://
<channel>
<link>http://
<item>
<title>Version 8.2, Build 1133</title>
<sparkle:
<pubDate>Mon, 04 May 2009 08:20:17 -0500</pubDate>
<enclosure
url="http://
sparkle:
sparkle:
type=
length="4398361"
sparkle:
/>
</item>
</channel>
</rss>
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: