Ignore:
Timestamp:
02/24/08 11:11:01 (14 years ago)
Author:
Nicholas Riley
Message:

Packaging cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/F-Script Anywhere/package-FSA.sh

    r7 r411  
    11#!/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
    102
    113set -x -v
     
    157
    168cd "$PACKAGEDIR"/Source && \
     9source VERSION.xcconfig && \
    1710find . -name \*~\* -exec rm -r '{}' \; && \
    18 VERSION=`cat VERSION` && \
    19 DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
     11VERSION=${CURRENT_MARKETING_VERSION} && \
     12DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" && \
    2013DSTROOT="$PACKAGEDIR/$VOL" && \
    21 sudo rm -fr "$DSTROOT" && \
     14sudo rm -rf "$DSTROOT" && \
     15sudo rm -rf build/ && \
    2216rm -rf build/ && \
    23 pbxbuild install "DSTROOT=$DSTROOT" && \
    24 ditto -rsrc "$PACKAGEDIR"/Source "$DSTROOT"/Source && \
    25 rm -rf "$DSTROOT"/Source/build && \
     17xcodebuild -target "Application" -configuration Deployment "DSTROOT=$DSTROOT" DEPLOYMENT_LOCATION=YES install && \
     18mkdir "$DSTROOT" && \
     19# ditto -rsrc "$PACKAGEDIR"/Source "$DSTROOT"/Source && \
     20# rm -rf "$DSTROOT"/Source/build && \
    2621find "$DSTROOT" -name ".svn" -exec sudo /bin/rm -rf "{}" \; ; \
    2722cd "$PACKAGEDIR" && \
    2823rm -f "$DMG" && \
    29 hdiutil create "$DMG" -megabytes 5 -ov -type UDIF && \
    30 DISK=`hdid -nomount "$DMG" | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
    31 newfs_hfs -v "$VOL" "/dev/r${DISK}s2" && \
    32 hdiutil eject "$DISK" && \
    33 hdid "$DMG" && \
     24hdiutil create "$DMG" -megabytes 10 -ov -layout NONE -fs 'HFS+' -volname "$VOL" && \
     25MOUNT=`hdiutil attach "$DMG"` && \
     26DISK=`echo "$MOUNT" | sed -ne ' s|^/dev/\([^ ]*\).*$|\1|p'` && \
     27MOUNTPOINT=`echo "$MOUNT" | sed -ne 's|^.*\(/Volumes/.*\)$|\1|p'` && \
    3428ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
    35 chmod -R a+rX,u+w "$MOUNTPOINT" && \
    36 openUp "$MOUNTPOINT" && \
    37 # sleep 2 && \
    38 hdiutil eject $DISK && \
    39 # osascript -e "tell application \"Finder\" to eject disk \"$VOL\"" && \
     29sudo chmod -R a+rX,u+w "$MOUNTPOINT" && \
     30# openUp "$MOUNTPOINT" && \
     31hdiutil detach $DISK && \
    4032hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
    4133mv "z$DMG" "$DMG" && \
     34hdiutil internet-enable "$DMG" && \
    4235scp "$DMG" ainaz:web/nriley/software/
Note: See TracChangeset for help on using the changeset viewer.