Skip to content

Commit 5e83842

Browse files
committed
Update GenSparkleInfo to use bzip2 compression and use the ARCHIVE_FILENAME in the download url.
1 parent dd7d3ec commit 5e83842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TeslaTunes.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
);
303303
runOnlyForDeploymentPostprocessing = 0;
304304
shellPath = /bin/bash;
305-
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}/TeslaTunes.app.zip\"\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 <<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";
305+
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";
306306
};
307307
E5CC88BB1AB5928F00C8951F /* ShellScript */ = {
308308
isa = PBXShellScriptBuildPhase;

0 commit comments

Comments
 (0)