source: releases/Pester/1.1a5/package-Pester.sh@ 198

Last change on this file since 198 was 45, checked in by Nicholas Riley, 22 years ago

Pester 1.1a2.

English.lproj/Credits.html: Fixed some HTML formatting issues, added Ben Hines to credits (thanks for helping out with 1.1a1 testing!)

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

English.lproj/MainMenu.nib: Reconnected initialFirstResponder outlet on the window; somehow it became disconnected. Fixed keyboard navigation loop. Removed formatters from date/time fields which were causing crashes on launch on 10.2 (they're instantiated from code in any case). Removed text from date field because it didn't work without the formatter.

NJRDateFormatter: Workaround for 10.2 NSScanner bug [Ben Hines].

NJRQTMediaPopUpButton: Remove corrupt JPEG note, can no longer reproduce. Removed -validateRecentMedia invocation, debug code shouldn't have been left in.

PSAlarmSetController: Set alerts before setting alarm, otherwise alarm in bogus state remains. Set date to today in awakeFromNib, moved from the nib. Disconnect initial first responder to work around 10.1 bug so keyboard focus is set properly when the window opens.

Pester.pbproj: Added VERSION.

Read Me.rtfd: Updated for 1.1a2.

VERSION: Updated for 1.1a2.

File size: 1.6 KB
Line 
1#!/bin/zsh
2
3# stuff to do:
4# hdiutil create DiskImage.dmg -megabytes <size> -layout NONE
5# hdid -nomount DiskImage.dmg
6# sudo /sbin/newfs_hfs -w -v VolumeName -b 4096 /dev/disk2
7# hdiutil eject /dev/disk2
8
9# also check out 'build' on mosxland.sf.net
10
11# set -x -v
12
13PACKAGEDIR="$PWD"
14PRODUCT="Pester"
15
16cd "$PACKAGEDIR"/Source && \
17find . -name \*~\* -exec rm -r '{}' \; && \
18VERSION=`cat VERSION` && \
19DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
20DSTROOT="$PACKAGEDIR/$VOL" && \
21sudo rm -fr "$DSTROOT" && \
22rm -rf build/ && \
23pbxbuild install "DSTROOT=$DSTROOT" && \
24ditto -rsrc "$PACKAGEDIR"/Source "$DSTROOT"/Source && \
25ditto -rsrc "${PACKAGEDIR}/Read Me" "$DSTROOT" && \
26rm -rf "$DSTROOT"/Source/build "${DSTROOT}/Source/Read Me.rtfd" && \
27#breaks in 10.2 and later, sigh.
28#mkdir "$DSTROOT/Read Me.rtfd" && \
29#cd "$DSTROOT/Read Me.rtfd" && \
30#for i in "../Pester.app/Contents/Resources/Read Me.rtfd"/*; do ln -s "$i"; done && \
31find "$DSTROOT" -name ".svn" -exec sudo /bin/rm -rf "{}" \; ; \
32cd "$PACKAGEDIR" && \
33rm -f "$DMG" && \
34hdiutil create "$DMG" -megabytes 5 -ov -type UDIF && \
35DISK=`hdid -nomount "$DMG" | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
36newfs_hfs -v "$VOL" "/dev/r${DISK}s2" && \
37hdiutil eject "$DISK" && \
38hdid "$DMG" && \
39ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
40chmod -R a+rX,u+w "$MOUNTPOINT" && \
41openUp "$MOUNTPOINT" && \
42# sleep 2 && \
43hdiutil eject $DISK && \
44# osascript -e "tell application \"Finder\" to eject disk \"$VOL\"" && \
45hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
46mv "z$DMG" "$DMG" && \
47scp "$DMG" ainaz:web/nriley/software/ && \
48:
Note: See TracBrowser for help on using the repository browser.