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

Packaging cleanup.

Location:
trunk/Cocoa/F-Script Anywhere
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Cocoa/F-Script Anywhere/Source/F-Script Anywhere.xcodeproj/project.pbxproj

    r410 r411  
    5050                E1EE9A270575769600F2D92C /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
    5151                E1EE9A280575769600F2D92C /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F59279FB01FED0C901AEEC37 /* Carbon.framework */; };
    52                 E1EE9A2C0575769600F2D92C /* LICENSE.rtf in Copy License */ = {isa = PBXBuildFile; fileRef = F5680F83020D369A01AEEC37 /* LICENSE.rtf */; };
    5352                E1EE9A790575776300F2D92C /* FScript.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = F5EFC2C3020A6C2601AEEDB1 /* FScript.framework */; };
    5453                E1EE9A7A0575776700F2D92C /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
     
    7574                };
    7675/* End PBXContainerItemProxy section */
    77 
    78 /* Begin PBXCopyFilesBuildPhase section */
    79                 E1EE9A2B0575769600F2D92C /* Copy License */ = {
    80                         isa = PBXCopyFilesBuildPhase;
    81                         buildActionMask = 12;
    82                         dstPath = "${DSTROOT}";
    83                         dstSubfolderSpec = 0;
    84                         files = (
    85                                 E1EE9A2C0575769600F2D92C /* LICENSE.rtf in Copy License */,
    86                         );
    87                         name = "Copy License";
    88                         runOnlyForDeploymentPostprocessing = 0;
    89                 };
    90 /* End PBXCopyFilesBuildPhase section */
    9176
    9277/* Begin PBXFileReference section */
     
    137122                F5680F7B020D0D0401AEEC37 /* English */ = {isa = PBXFileReference; lastKnownFileType = wrapper.nib; name = English; path = English.lproj/FSAInterpreterPanel.nib; sourceTree = "<group>"; };
    138123                F5680F7F020D35ED01AEEC37 /* Read Me */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = "Read Me"; sourceTree = "<group>"; };
    139                 F5680F83020D369A01AEEC37 /* LICENSE.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; name = LICENSE.rtf; path = ../LICENSE.rtf; sourceTree = SOURCE_ROOT; };
     124                F5680F83020D369A01AEEC37 /* LICENSE.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = LICENSE.rtf; sourceTree = "<group>"; };
    140125                F5694E2702E96FFE01AEEDB1 /* Bullseye menu cursor.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; path = "Bullseye menu cursor.tiff"; sourceTree = "<group>"; };
    141126                F574ADD5020AC10F01AEEDB1 /* NJRScrollView.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; path = NJRScrollView.m; sourceTree = "<group>"; };
     
    403388                                E1EE9A260575769600F2D92C /* Frameworks */,
    404389                                E1EE9A0F0575769600F2D92C /* Resources */,
    405                                 E1EE9A2B0575769600F2D92C /* Copy License */,
    406390                                E18D02920D717AA600F7283F /* Copy FScript.framework */,
    407391                                E1EE9A2D0575769600F2D92C /* Copy Documentation (install only) */,
     
    525509                        runOnlyForDeploymentPostprocessing = 1;
    526510                        shellPath = /bin/sh;
    527                         shellScript = "# Copy various README files into DSTROOT if building a root\n\nif [ z\"${DSTROOT}\" != z\"\" ] ; then\n    rm -f \"${DSTROOT}/Read Me\"\n    tr '\\n' '\\r' < \"Read Me\" > \"${DSTROOT}/Read Me\"\n    cp \"Read Me.rsrc\" \"${DSTROOT}/Read Me/..namedfork/rsrc\"\n    /Developer/Tools/SetFile -t 'ttro' -c 'ttxt' \"${DSTROOT}/Read Me\"\n        \n    # Create Darwin source directory\n    mkdir \"${DSTROOT}/Darwin source\"\n    \n    # Fix permissions so ditto doesn't lock people out\n    chmod -R a+rX,u+w \"${DSTROOT}\"\nfi";
     511                        shellScript = "# Copy various README files into DSTROOT if building a root\n\n# Make tr ignorant and happy\nexport LANG=C\n\nif [ z\"${DSTROOT}\" != z\"\" ] ; then\n    rm -f \"${DSTROOT}/Read Me\"\n    tr '\\n' '\\r' < \"Read Me\" > \"${DSTROOT}/Read Me\"\n    cp \"Read Me.rsrc\" \"${DSTROOT}/Read Me/..namedfork/rsrc\"\n    /Developer/Tools/SetFile -t 'ttro' -c 'ttxt' \"${DSTROOT}/Read Me\"\n\n    cp \"LICENSE.rtf\" \"${DSTROOT}\"\n\n    # Create Darwin source directory\n    # mkdir \"${DSTROOT}/Darwin source\"\n    \n    # Fix permissions so ditto doesn't lock people out\n    chmod -R a+rX,u+w \"${DSTROOT}\"\nfi";
    528512                };
    529513/* End PBXShellScriptBuildPhase section */
     
    667651                                GCC_WARN_UNKNOWN_PRAGMAS = NO;
    668652                                INFOPLIST_FILE = "Bundle-Info.plist";
    669                                 INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
    670653                                OTHER_CFLAGS = "";
    671654                                PRODUCT_NAME = "F-Script Anywhere";
     655                                SKIP_INSTALL = YES;
    672656                        };
    673657                        name = Development;
     
    689673                                GCC_WARN_UNKNOWN_PRAGMAS = NO;
    690674                                INFOPLIST_FILE = "Bundle-Info.plist";
    691                                 INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
    692675                                OTHER_CFLAGS = "-DFSA_DEBUG=0";
    693676                                PRODUCT_NAME = "F-Script Anywhere";
     677                                SKIP_INSTALL = YES;
    694678                        };
    695679                        name = Deployment;
     
    708692                                GCC_WARN_UNKNOWN_PRAGMAS = NO;
    709693                                INFOPLIST_FILE = "Bundle Loader-Info.plist";
    710                                 INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
    711694                                OPTIMIZATION_CFLAGS = "-O0";
    712695                                OTHER_CFLAGS = "";
     
    731714                                GCC_WARN_UNKNOWN_PRAGMAS = NO;
    732715                                INFOPLIST_FILE = "Bundle Loader-Info.plist";
    733                                 INSTALL_PATH = "$(USER_LIBRARY_DIR)/Bundles";
    734716                                OTHER_CFLAGS = "-DFSA_DEBUG=0";
    735717                                PRODUCT_NAME = SCPatchLoader;
  • 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.