Ignore:
Timestamp:
11/25/07 03:01:04 (17 years ago)
Author:
Nicholas Riley
Message:

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/Pester/package-Pester.sh

    r116 r361  
    1 #!/bin/zsh
     1#!/bin/zsh -e
    22
    3 #set -x -v
     3# set -x -v
    44
    55PACKAGEDIR="$PWD"
    66PRODUCT="Pester"
    77
    8 cd "$PACKAGEDIR"/Source && \
    9 find . -name \*~\* -exec rm -r '{}' \; && \
    10 rm -f .gdb_history && \
    11 VERSION=`cat VERSION` && \
    12 DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" DSTROOT="$PACKAGEDIR/$VOL" && \
    13 sudo rm -fr "$DSTROOT" && \
    14 rm -rf build/ && \
    15 pbxbuild install "DSTROOT=$DSTROOT" && \
    16 rm -rf build/ && \
    17 ditto -rsrc "$PACKAGEDIR"/Source "$DSTROOT"/Source && \
    18 ditto -rsrc "${PACKAGEDIR}/Read Me" "$DSTROOT" && \
    19 rm -rf "$DSTROOT"/Source/build "${DSTROOT}/Source/Read Me.rtfd" && \
    20 find "$DSTROOT" -name ".svn" -exec sudo /bin/rm -rf "{}" \; ; \
    21 cd "$PACKAGEDIR" && \
    22 rm -f "$DMG" && \
    23 hdiutil create "$DMG" -megabytes 5 -ov -layout NONE -fs 'HFS+' -volname "$VOL" && \
    24 MOUNT=`hdiutil attach "$DMG"` && \
    25 DISK=`echo "$MOUNT" | sed -ne ' s|^/dev/\([^ ]*\).*$|\1|p'` && \
    26 MOUNTPOINT=`echo "$MOUNT" | sed -ne 's|^.*\(/Volumes/.*\)$|\1|p'` && \
    27 ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
    28 chmod -R a+rX,u+w "$MOUNTPOINT" && \
    29 openUp "$MOUNTPOINT" && \
    30 hdiutil detach $DISK && \
    31 hdiutil resize -sectors min "$DMG" && \
    32 hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
    33 mv "z$DMG" "$DMG" && \
    34 hdiutil internet-enable "$DMG" && \
    35 scp "$DMG" ainaz:web/nriley/software/ && \
    36 cd "$PACKAGEDIR"/Source && \
    37 agvtool bump -all && \
    38 :
     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 TracChangeset for help on using the changeset viewer.