source: trunk/Cocoa/Pester/ 624

Last change on this file since 624 was 364, checked in by Nicholas Riley, 15 years ago

English.lproj/Alarms.nib: Specify alternating row coloring in the nib,
now we're 10.4+.

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

English.lproj/Localizable.strings: Quote alarm message in pretty
description (used in tooltip). Change voice error now it no longer
incorporates OSStatus.

English.lproj/MainMenu.nib: Add speech prefs again; turn repetitions
field into a NJRValidatingField and hook up its delegate.

Info-Pester.plist: Updated for 1.1b6.

NJRHotKey.m: Switch to new Objective-C exception style.

NJRIntervalField.[hm]: Now a subclass of NJRValidatingField.

NJRTableDelegate.m: Get rid of our own tooltip support as NSTableView
now supports them (though with a minor visual glitch on the first

NJRTableView.[hm]: Remove tooltip support. Remove alternating row
coloring support.

NJRValidatingField.[hm]: Contains validation sheet stuff from

NJRVoicePopUpButton.[hm]: Switch to NSSpeechSynthesizer.

PSAlarm.m: Quote alarm message in pretty description (used in
tooltip). Fix repeating alarms not restoring as repeating if they
didn't expire while Pester was not running. No longer set timer on
Pester 1.0 alarm import, to help make importing atomic.

PSAlarmSetController.[hm]: Use NJRValidatingField for repetitions
field. Switch to new Objective-C exception style. Fix validation
issues on in/at changing. Temporary changes to restore speech support
and allow the sound popup to be removed entirely from the nib (rather
than being dragged out of the visible area, as it was in 1.1b5).
Changes for NSSpeechSynthesizer, which uses different voice names.

PSAlarms.m: Switch to new Objective-C exception style. Fix
duplication and error handling in Pester 1.0 alarm import, making

PSAlarmsController.m: Use new tooltip support (since it's implemented
in the delegate rather than the data source, we have to proxy it).

PSAlerts.m: Wrap initialization in exception block so we don't leak.

PSApplication.m: Switch to new Objective-C exception style.

PSMediaAlert.m: Clamp repetitions at 1..99 so the user can't type an
invalid value, then quit and have it saved.

PSSpeechAlert.[hm]: Switch to NSSpeechSynthesizer. Throw an
intelligible exception if the voice is unavailable.

PSTimer.m: Switch to new Objective-C exception style.

Pester.xcodeproj: Remove VERSION generation; rename targets to be more

Read Me.rtfd: Updated for 1.1b6.

SUSpeaker.[hm]: Gone in switch to NSSpeechSynthesizer.

VERSION: Gone - we use agvtool for everything now.

Updates/release-notes.html: Updated for 1.1b6.

Updates/updates.xml: Updated for 1.1b6. Use agvtool to get version. Atomically update
file on Web server to avoid partial downloads.

File size: 1.8 KB
1#!/bin/zsh -e
3# set -x -v
8# gather information
9cd "$PACKAGEDIR"/Source
10VERSION=`agvtool mvers -terse1`
11BUILD=`agvtool vers -terse`
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" \
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
28# create disk image
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)
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/$
50ssh ainaz mv web/nriley/software/$DMG{.new,}
51rsync -avz --exclude='.*' Updates/ ainaz:web/nriley/software/$PRODUCT/
52# cd "$PACKAGEDIR"/Source
53# agvtool bump -all
Note: See TracBrowser for help on using the repository browser.