Skip to content

Commit

Permalink
Fix autoupdate package generator script. Switched back to zip instead…
Browse files Browse the repository at this point in the history
… of bzip2 :(

Sparkle wasn't liking the bzip2 packages and was still trying to unzip them with ditto using ditto with a -k arg.
May look back into bzip2 later, but the expedient course was just to switch back to zip.
  • Loading branch information
tattwamasi committed May 14, 2015
1 parent d8f1412 commit 0e11b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TeslaTunes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
shellScript = "set -o errexit\n\n#[ $BUILD_STYLE = Release ] || { echo Distribution target requires \"'Release'\" build style; false; }\n\nVERSION=$(defaults read \"$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app/Contents/Info\" CFBundleVersion)\n#VERSIONTXT=$(defaults read \"$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app/Contents/Info\" CFBundleShortVersionString)\nDOWNLOAD_BASE_URL=\"http://teslatunes.loci.net/app/\"\nRELEASENOTES_URL=\"https://github.com/tattwamasi/TeslaTunes/releases/tag/$VERSION\"\n\nARCHIVE_FILENAME=\"${PROJECT_NAME}_${VERSION}.zip\"\nDOWNLOAD_URL=\"https://github.com/tattwamasi/TeslaTunes/releases/download/${VERSION}/${ARCHIVE_FILENAME}\"\n\nWD=$PWD\ncd \"$BUILT_PRODUCTS_DIR\"\nrm -f \"$PROJECT_NAME\"*.zip\nditto -cj --keepParent \"$PROJECT_NAME.app\" \"$ARCHIVE_FILENAME\"\n\nSIZE=$(stat -f %z \"$ARCHIVE_FILENAME\")\nPUBDATE=$(LC_TIME=en_US date +\"%a, %d %b %G %T %z\")\n\ncat <<EOF\n<item>\n<title>Version $VERSION</title>\n<sparkle:releaseNotesLink>$RELEASENOTES_URL</sparkle:releaseNotesLink>\n<pubDate>$PUBDATE</pubDate>\n<enclosure\nurl=\"$DOWNLOAD_URL\"\nsparkle:version=\"$VERSION\"\ntype=\"application/octet-stream\"\nlength=\"$SIZE\"\n/>\n</item>\nEOF\n";
shellScript = "set -o errexit\n\n#[ $BUILD_STYLE = Release ] || { echo Distribution target requires \"'Release'\" build style; false; }\n\nVERSION=$(defaults read \"$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app/Contents/Info\" CFBundleVersion)\n#VERSIONTXT=$(defaults read \"$BUILT_PRODUCTS_DIR/$PROJECT_NAME.app/Contents/Info\" CFBundleShortVersionString)\nDOWNLOAD_BASE_URL=\"http://teslatunes.loci.net/app/\"\nRELEASENOTES_URL=\"https://github.com/tattwamasi/TeslaTunes/releases/tag/$VERSION\"\n\nARCHIVE_FILENAME=\"${PROJECT_NAME}_${VERSION}.zip\"\nDOWNLOAD_URL=\"https://github.com/tattwamasi/TeslaTunes/releases/download/${VERSION}/${ARCHIVE_FILENAME}\"\n\nWD=$PWD\ncd \"$BUILT_PRODUCTS_DIR\"\nrm -f \"$PROJECT_NAME\"*.zip\nditto -ck --keepParent \"$PROJECT_NAME.app\" \"$ARCHIVE_FILENAME\"\n\nSIZE=$(stat -f %z \"$ARCHIVE_FILENAME\")\nPUBDATE=$(LC_TIME=en_US date +\"%a, %d %b %G %T %z\")\n\ncat >appcast_item_${ARCHIVE_FILENAME}.xml <<EOF\n<item>\n<title>Version $VERSION</title>\n<sparkle:releaseNotesLink>$RELEASENOTES_URL</sparkle:releaseNotesLink>\n<pubDate>$PUBDATE</pubDate>\n<enclosure\nurl=\"$DOWNLOAD_URL\"\nsparkle:version=\"$VERSION\"\ntype=\"application/octet-stream\"\nlength=\"$SIZE\"\n/>\n</item>\nEOF\n";
};
E5CC88BB1AB5928F00C8951F /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
Expand Down

0 comments on commit 0e11b6a

Please sign in to comment.