diff --git a/Configurations/make-release-package.sh b/Configurations/make-release-package.sh index 50b5e985..de8001c4 100755 --- a/Configurations/make-release-package.sh +++ b/Configurations/make-release-package.sh @@ -3,7 +3,7 @@ set -e if [ "$ACTION" = "" ] ; then rm -rf "$CONFIGURATION_BUILD_DIR/staging" - rm -f "Sparkle-$CURRENT_PROJECT_VERSION.zip" + rm -f "Sparkle-$CURRENT_PROJECT_VERSION.tar.bz2" mkdir -p "$CONFIGURATION_BUILD_DIR/staging" cp "$SRCROOT/CHANGELOG" "$SRCROOT/LICENSE" "$SRCROOT/Resources/SampleAppcast.xml" "$CONFIGURATION_BUILD_DIR/staging" @@ -16,6 +16,7 @@ if [ "$ACTION" = "" ] ; then cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework.dSYM" "$CONFIGURATION_BUILD_DIR/staging" cd "$CONFIGURATION_BUILD_DIR/staging" - zip --symlinks -r "../Sparkle-$CURRENT_PROJECT_VERSION.zip" . + # Sorted file list groups similar files together, which improves tar compression + find . \! -type d | rev | sort | rev | tar cjvf "../Sparkle-$CURRENT_PROJECT_VERSION.tar.bz2" --files-from=- rm -rf "$CONFIGURATION_BUILD_DIR/staging" fi diff --git a/Makefile b/Makefile index c12ee2e9..96d54cde 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: all localizable-strings -builddir := $(shell mktemp -d "$(TMPDIR)/Sparkle.XXXXXX") +BUILDDIR := $(shell mktemp -d "$(TMPDIR)/Sparkle.XXXXXX") localizable-strings: rm -f Sparkle/en.lproj/Sparkle.strings @@ -9,5 +9,5 @@ localizable-strings: rm Sparkle/en.lproj/Localizable.strings release: - xcodebuild -scheme Distribution -configuration Release -derivedDataPath "$(builddir)" - open -R "$(builddir)/Build/Products/Release/Sparkle-"*.zip + xcodebuild -scheme Distribution -configuration Release -derivedDataPath "$(BUILDDIR)" + open -R "$(BUILDDIR)/Build/Products/Release/Sparkle-"*.tar.bz2