source: releases/Pester/1.1b5/package-Pester.sh@ 544

Last change on this file since 544 was 361, checked in by Nicholas Riley, 17 years ago

VERSION: Updated for 1.1b5.

English.lproj/InfoPlist.strings: Updated for 1.1b5.

English.lproj/MainMenu.nib: Change IB compatibility level to 10.4.
Disable controls which lead to unstable functionality in this version.
Added Sparkle support. Hook up removeMessageButton to
PSAlarmSetController for "-" fallback drawing.

English.lproj/Preferences.nib: Added Sparkle checkbox.

English.lproj/Read Me.nib: Leopard-ized with source list coloring,
highlight and removed focus ring (which caused artifacts anyway).

English.lproj/Snooze until.nib: Use new natural language date strings
and calendar button bezel style.

Info-Pester.plist: Updated for 1.1b5. Added Sparkle support.

NJRDateFormatter.m: Comment out debug logging on every keystroke.

PSAlarmSetController.[hm]: If "-" image exists (on Leopard), don't
draw it with text as well.

PSAlerts.m: Don't describe bounce alert (which is present for
backwards compatibility, but doesn't work yet in this version).

PSPowerManager.m: Temporarily disable; untested in this version.

Pester.xcodeproj: Change Development/Deployment to Debug/Release.
Link to Sparkle. STRIP_INSTALLED_PRODUCT=NO on release version for
now (eventually, can investigate using symbol files).

Read Me.rtfd: Updated for 1.1b5. Use real links. Clean up release
notes. Credit Sparkle and Date::Manip. Clean up styles so they look
better in the read me viewer. Fix Omni link.

Sparkle.diff: Changes to Sparkle, which is included as an external.
These aren't yet automatically applied.

Updates/Application icon.png: The icon converted to a PNG. This will
probably go away as it's too big.

Updates/release-notes.css: Release notes CSS based on the example that
comes with Sparkle.

Updates/release-notes.html: Dummy release notes file; nobody should
see this yet.

Updates/updates.xml: Initial Sparkle appcast file.

package-Pester.sh: Update for xcodebuild, Sparkle, etc. No longer
include source in download.

File size: 1.8 KB
Line 
1#!/bin/zsh -e
2
3# set -x -v
4
5PACKAGEDIR="$PWD"
6PRODUCT="Pester"
7
8# gather information
9cd "$PACKAGEDIR"/Source
10VERSION=`cat VERSION`
11BUILD=`agvtool vers -terse`
12DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION"
13DSTROOT="$PACKAGEDIR/$VOL"
14
15# clean and build
16sudo rm -rf "$DSTROOT"
17find . -name \*~ -exec rm '{}' \;
18rm -rf build/ Sparkle/build/
19cd Sparkle
20xcodebuild -target Sparkle -configuration Release
21cd ..
22xcodebuild -target Pester -configuration Release "DSTROOT=$DSTROOT" \
23 DEPLOYMENT_LOCATION=YES install
24rm -rf build/Release # or Xcode gets confused next time because of the symlink
25find "$DSTROOT" \( -name ".svn" -or -name "Headers" \) \
26 -exec sudo /bin/rm -rf "{}" \; || true
27
28# create disk image
29cd "$PACKAGEDIR"
30rm -f $DMG
31hdiutil create $DMG -megabytes 5 -ov -layout NONE -fs 'HFS+' -volname $VOL
32MOUNT=`hdiutil attach $DMG`
33DISK=`echo $MOUNT | sed -ne ' s|^/dev/\([^ ]*\).*$|\1|p'`
34MOUNTPOINT=`echo $MOUNT | sed -ne 's|^.*\(/Volumes/.*\)$|\1|p'`
35ditto -rsrc "$DSTROOT" "$MOUNTPOINT"
36chmod -R a+rX,u+w "$MOUNTPOINT"
37hdiutil detach $DISK
38hdiutil resize -sectors min $DMG
39hdiutil convert $DMG -format UDBZ -o z$DMG
40mv z$DMG $DMG
41hdiutil internet-enable $DMG
42zmodload zsh/stat
43SIZE=$(stat -L +size $DMG)
44
45# update Web presence
46DIGEST=`openssl dgst -sha1 -binary < $DMG | openssl dgst -dss1 -sign ~/Documents/Development/DSA/dsa_priv.pem | openssl enc -base64`
47perl -pi -e 's|(<enclosure url=".+'$DMG'").+/>|\1 length="'$SIZE'" type="application/x-apple-diskimage" sparkle:version="'$BUILD'" sparkle:shortVersionString="'$VERSION'" sparkle:dsaSignature="'$DIGEST'"/>|' Updates/updates.xml
48scp $DMG ainaz:web/nriley/software/
49ssh ainaz chmod go+r web/nriley/software/$DMG
50rsync -avz --exclude='.*' Updates/ ainaz:web/nriley/software/$PRODUCT/
51cd "$PACKAGEDIR"/Source
52# agvtool bump -all
53
Note: See TracBrowser for help on using the repository browser.