Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | set -x -v
|
---|
4 |
|
---|
5 | PACKAGEDIR="$PWD"
|
---|
6 | PRODUCT="ICeCoffEE"
|
---|
7 |
|
---|
8 | cd "$PRODUCT" && \
|
---|
9 | find . -name \*~ -exec rm '{}' \; && \
|
---|
10 | VERSION=`cat VERSION` && \
|
---|
11 | DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" MOUNTPOINT="/Volumes/$VOL" && \
|
---|
12 | DSTROOT="$PACKAGEDIR/$VOL" && \
|
---|
13 | sudo rm -fr "$DSTROOT" && \
|
---|
14 | sudo rm -rf build/ && \
|
---|
15 | rm -rf build/ && \
|
---|
16 | pbxbuild install -target "ICeCoffEE Installer" "DSTROOT=$DSTROOT" && \
|
---|
17 | sudo rm -rf build/ && \
|
---|
18 | mv "$DSTROOT/$PRODUCT Installer.app" "$DSTROOT/$PRODUCT $VERSION Installer.app" && \
|
---|
19 | cd "$PACKAGEDIR" && \
|
---|
20 | rm -f "$DMG" && \
|
---|
21 | hdiutil create "$DMG" -megabytes 5 -ov -type UDIF && \
|
---|
22 | DISK=`hdid -nomount "$DMG" | sed -ne ' /Apple_partition_scheme/ s|^/dev/\([^ ]*\).*$|\1|p'` && \
|
---|
23 | newfs_hfs -v "$VOL" "/dev/r${DISK}s2" && \
|
---|
24 | hdiutil eject "$DISK" && \
|
---|
25 | hdid "$DMG" && \
|
---|
26 | ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
|
---|
27 | chmod -R a+rX,u+w "$MOUNTPOINT" && \
|
---|
28 | openUp "$MOUNTPOINT" && \
|
---|
29 | hdiutil eject $DISK && \
|
---|
30 | hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
|
---|
31 | mv "z$DMG" "$DMG" && \
|
---|
32 | hdiutil internet-enable "$DMG" && \
|
---|
33 | scp "$DMG" ainaz:web/nriley/software/
|
---|
34 | :
|
---|
35 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.