Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Script for creating packages and disk images #376139
    treydock
    Participant

    [QUOTE][u]Quote by: hjuutilainen[/u][p]Damn this spam filter…

    PS. treydock, could you modify your post to not include the full PackageMaker command? It seems to make the page awfully wide… 🙂

    Best,
    Hannes[/p][/QUOTE]

    Excuse the supidity , but how do I edit a post?

    in reply to: Script for creating packages and disk images #376127
    treydock
    Participant

    This is a very useful app. However there are a lot of bugs I’ve run into.

    First the script won’t run from my network home folder. Every instance of chown gets an Operation not Permitted.

    Next it seems it can’t be run if the path has spaces in it. My setup has two partitions , one System and the other Temporary Storage, and the script fails with invalid path that stops at the space.

    Another thing I noticed is the timing for changing the permissions of these apps before packaging. It seems changing the application’s permissions causes flags to go up with Disk Utility and Package Maker about the disk permissions. This only throws warnings but it’s a bit unsettling and annoying seeing the same warning for every single file. Here’s a sliver of the output

    [code]
    Setting owner and mode to root:admin, rwxrwxr-x


    Creating package with command:

    /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker \
    –root /Volumes/System/facultyApps/component –resources /Volumes/System/facultyApps/resources \
    –scripts /Volumes/System/facultyApps/scripts –id “com.perf.facultyApps-1.0.0” \
    –title “facultyApps-1.0.0” –version 1.0.0 –target 10.4 –no-recommend \
    –out /Volumes/System/facultyApps/disk/facultyApps-1.0.0.pkg

    2009-05-05 10:57:08.473 PackageMaker[1565:10b] Setting to : 0 (null)
    2009-05-05 10:57:08.476 PackageMaker[1565:10b] Setting to : 0 (null)
    2009-05-05 10:57:08.617 PackageMaker[1565:10b] relocate: (null) 0

    Warning: User ID 1255435942 does not match 0 of root volume for “/Applications”. Make sure to have disk permissions repaired with Disk Utility.
    Warning: User ID 1255435942 for “/Applications” exceeds 16 bit. The package might not install correctly.

    Warning: Mode drwxrwxr-x does not match drwxr-xr-x of root volume for “/Applications/Keychain Minder.app”. Make sure to have disk permissions repaired with Disk Utility.
    Warning: User ID 0 does not match 501 of root volume for “/Applications/Keychain Minder.app”. Make sure to have disk permissions repaired with Disk Utility.

    [/code]

    It seems OS X doesn’t like the chmod to 775. Maybe it should be 755? Giving only root ability to write to it but others to read and execute should work maybe?

    (Edited by Patrick Fergus, 5/8/09 2:31 p.m. CDT since treydock seemed ok with wrapping the PackageMaker command)

Viewing 2 posts - 1 through 2 (of 2 total)