source: releases/ICeCoffEE/1.4.1/package-ICeCoffEE.sh@ 437

Last change on this file since 437 was 169, checked in by Nicholas Riley, 20 years ago

ICeCoffEE 1.4.1

ICeCoffEEShared.h: No ICCF_DEBUG.
ICeCoffEE APE.xcode: Workarounds for Xcode idiocy; packaging should be automatic again.
ICeCoffEEWebKit.m: Actually launch the URL
package-ICeCoffEE.sh: Packaging workarounds, part 2

File size: 1.2 KB
Line 
1#!/bin/sh
2
3set -x -v
4
5PACKAGEDIR="$PWD"
6PRODUCT="ICeCoffEE"
7
8cd "$PRODUCT" && \
9find . -name \*~ -exec rm '{}' \; && \
10VERSION=`cat VERSION` && \
11DMG="$PRODUCT-$VERSION.dmg" VOL="$PRODUCT $VERSION" && \
12DSTROOT="$PACKAGEDIR/$VOL" && \
13sudo rm -rf "$DSTROOT" && \
14sudo rm -rf build/ && \
15rm -rf build/ && \
16xcodebuild -target "ICeCoffEE Installer" -buildstyle Deployment "DSTROOT=$DSTROOT" DEPLOYMENT_LOCATION=YES install && \
17mkdir "$DSTROOT" && \
18mv "build/$PRODUCT Installer.app" "$DSTROOT/$PRODUCT $VERSION Installer.app" && \
19sudo rm -rf build/ && \
20find "$DSTROOT" -name ".svn" -type d -exec sudo /bin/rm -rf "{}" \; ; \
21cd "$PACKAGEDIR" && \
22rm -f "$DMG" && \
23hdiutil create "$DMG" -megabytes 5 -ov -layout NONE -fs 'HFS+' -volname "$VOL" && \
24MOUNT=`hdiutil attach "$DMG"` && \
25DISK=`echo "$MOUNT" | sed -ne ' s|^/dev/\([^ ]*\).*$|\1|p'` && \
26MOUNTPOINT=`echo "$MOUNT" | sed -ne 's|^.*\(/Volumes/.*\)$|\1|p'` && \
27ditto -rsrc "$DSTROOT" "$MOUNTPOINT" && \
28chmod -R a+rX,u+w "$MOUNTPOINT" && \
29openUp "$MOUNTPOINT" && \
30hdiutil detach $DISK && \
31hdiutil resize -sectors min "$DMG" && \
32hdiutil convert "$DMG" -format UDZO -imagekey zlib-level=9 -o "z$DMG" && \
33mv "z$DMG" "$DMG" && \
34hdiutil internet-enable "$DMG" && \
35# scp "$DMG" ainaz:web/nriley/software/
36:
Note: See TracBrowser for help on using the repository browser.