forked from sparkle-project/Sparkle
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Xcode and Makefile targets to build a Sparkle release package.
Use `make release` to build Sparkle and create a Sparkle-VERSION.zip, ready for upload.
- Loading branch information
1 parent
5d0fa33
commit 72d8e4e
Showing
4 changed files
with
130 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ "$ACTION" = "" ] ; then | ||
rm -rf "$CONFIGURATION_BUILD_DIR/staging" | ||
rm -f "Sparkle-$CURRENT_PROJECT_VERSION.zip" | ||
|
||
mkdir -p "$CONFIGURATION_BUILD_DIR/staging" | ||
cp "$SRCROOT/CHANGELOG" "$SRCROOT/LICENSE" "$SRCROOT/Resources/SampleAppcast.xml" "$CONFIGURATION_BUILD_DIR/staging" | ||
cp -R "$SRCROOT/bin" "$CONFIGURATION_BUILD_DIR/staging" | ||
cp "$CONFIGURATION_BUILD_DIR/BinaryDelta" "$CONFIGURATION_BUILD_DIR/staging/bin" | ||
cp -R "$CONFIGURATION_BUILD_DIR/Sparkle.framework" "$CONFIGURATION_BUILD_DIR/staging" | ||
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" . | ||
rm -rf "$CONFIGURATION_BUILD_DIR/staging" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
.PHONY: all localizable-strings | ||
|
||
builddir := $(shell mktemp -d "$(TMPDIR)/Sparkle.XXXXXX") | ||
|
||
localizable-strings: | ||
rm Sparkle/en.lproj/Sparkle.strings || TRUE | ||
genstrings -o Sparkle/en.lproj -s SULocalizedString Sparkle/*.m Sparkle/*.h | ||
iconv -f UTF-16 -t UTF-8 < Sparkle/en.lproj/Localizable.strings > Sparkle/en.lproj/Sparkle.strings | ||
rm Sparkle/en.lproj/Localizable.strings | ||
|
||
release: | ||
xcodebuild -scheme Distribution -configuration Release -derivedDataPath "$(builddir)" | ||
open -R "$(builddir)/Build/Products/Release/Sparkle-"*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<channel> | ||
<title>Your Great App's Changelog</title> | ||
<link>http://you.com/app/appcast.xml</link> | ||
<description>Most recent changes with links to updates.</description> | ||
<language>en</language> | ||
<item> | ||
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<channel> | ||
<title>Your Great App's Changelog</title> | ||
<link>http://you.com/app/appcast.xml</link> | ||
<description>Most recent changes with links to updates.</description> | ||
<language>en</language> | ||
<item> | ||
<title>Version 2.0 (2 bugs fixed; 3 new features)</title> | ||
<sparkle:releaseNotesLink> | ||
http://you.com/app/2.0.html | ||
</sparkle:releaseNotesLink> | ||
<sparkle:releaseNotesLink> | ||
http://you.com/app/2.0.html | ||
</sparkle:releaseNotesLink> | ||
<pubDate>Wed, 09 Jan 2006 19:20:11 +0000</pubDate> | ||
<enclosure url="http://you.com/app/Your Great App 2.0.zip" sparkle:version="2.0" length="1623481" type="application/octet-stream" sparkle:dsaSignature="BAFJW4B6B1K1JyW30nbkBwainOzrN6EQuAh" /> | ||
<enclosure url="http://you.com/app/Your%20Great%20App%202.0.zip" sparkle:version="2.0" length="1623481" type="application/octet-stream" sparkle:dsaSignature="BAFJW4B6B1K1JyW30nbkBwainOzrN6EQuAh" /> | ||
<sparkle:minimumSystemVersion>10.7</sparkle:minimumSystemVersion> | ||
</item> | ||
</item> | ||
|
||
<item> | ||
<item> | ||
<title>Version 1.5 (8 bugs fixed; 2 new features)</title> | ||
<sparkle:releaseNotesLink> | ||
http://you.com/app/1.5.html | ||
</sparkle:releaseNotesLink> | ||
<sparkle:releaseNotesLink> | ||
http://you.com/app/1.5.html | ||
</sparkle:releaseNotesLink> | ||
<pubDate>Wed, 01 Jan 2006 12:20:11 +0000</pubDate> | ||
<enclosure url="http://you.com/app/Your Great App 1.5.zip" sparkle:version="1.5" length="1472893" type="application/octet-stream" sparkle:dsaSignature="234818feCa1JyW30nbkBwainOzrN6EQuAh" /> | ||
<enclosure url="http://you.com/app/Your%20Great%20App%201.5.zip" sparkle:version="1.5" length="1472893" type="application/octet-stream" sparkle:dsaSignature="234818feCa1JyW30nbkBwainOzrN6EQuAh" /> | ||
<sparkle:minimumSystemVersion>10.7</sparkle:minimumSystemVersion> | ||
</item> | ||
</item> | ||
|
||
<!-- Now here's an example of a version with a weird internal version number (like an SVN revision) but a human-readable external one. --> | ||
<item> | ||
<title>Version 1.4 (5 bugs fixed; 2 new features)</title> | ||
<sparkle:releaseNotesLink> | ||
http://you.com/app/1.4.html | ||
</sparkle:releaseNotesLink> | ||
<pubDate>Wed, 25 Dec 2005 12:20:11 +0000</pubDate> | ||
<enclosure url="http://you.com/app/Your Great App 1.4.zip" sparkle:version="241" sparkle:shortVersionString="1.4" sparkle:dsaSignature="MC0CFBfeCa1JyW30nbkBwainOzrN6EQuAh=" length="1472349" type="application/octet-stream" /> | ||
<sparkle:minimumSystemVersion>10.7</sparkle:minimumSystemVersion> | ||
<!-- Now here's an example of a version with a weird internal version number (like an SVN revision) but a human-readable external one. --> | ||
<item> | ||
<title>Version 1.4 (5 bugs fixed; 2 new features)</title> | ||
<sparkle:releaseNotesLink> | ||
http://you.com/app/1.4.html | ||
</sparkle:releaseNotesLink> | ||
<pubDate>Wed, 25 Dec 2005 12:20:11 +0000</pubDate> | ||
<enclosure url="http://you.com/app/Your%20Great%20App%201.4.zip" sparkle:version="241" sparkle:shortVersionString="1.4" sparkle:dsaSignature="MC0CFBfeCa1JyW30nbkBwainOzrN6EQuAh=" length="1472349" type="application/octet-stream" /> | ||
<sparkle:minimumSystemVersion>10.7</sparkle:minimumSystemVersion> | ||
</item> | ||
</channel> | ||
</channel> | ||
</rss> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters