Sudo Hdiutil Create John Users Shared John.dmg

  1. Sudo Hdiutil Create John Users Shared John.dmg Mac
  2. Sudo Hdiutil Create John Users Shared John.dmg Free

I am trying to construct a .dmg containing my application bundle, an examples directory, and a readme file. I use a shell script to construct the directory 'G4beamline-3.01' containing them, and then do

If you want to script the install it requires a few more steps since the name of the.dmg file, the name of the Volume created, the name of the application, and the name of the device that needs to be detached can all be different. Plus they can have spaces in them. Also a.dmg can have an.app file or a.pkg file in it and these require different behavior. Aug 31, 2012  The permissions on that directory are 770, not 777 as you said. As a result, only the root user or a member of admin group can write to it. Drwxrwx- is 770.

$ hdiutil create -srcdir G4beamline-3.01 G4beamline-3.01.dmg

...................................................................

hdiutil: create failed - error -5341

What does that error mean? How can I fix it?

Here's the crazy part -- if I move the app bundle out of that directory, I can create two .dmg-s:

$ mv G4beamline-3.01/G4beamline.app .

$ hdiutil create -srcdir G4beamline-3.01 one.dmg

....................................

Sudo Hdiutil Create John Users Shared John.dmg Mac

Sudo Hdiutil Create John Users Shared John.dmg

created: ...path/one.dmg

$ hdiutil create -srcdir G4beamline.app two.dmg

...................................................................

created: ...path/two.dmg

So the puzzle is: why is it that it can create the .dmg when the two pieces are separate, but not when they are together (as required)?

Note that all .dmg-s open normally, and if there is an app inside it runs correctly. There is plenty of space on the drive. In Terminal I did 'su - g4bl' to build the app as a user other than the primary user, but tests as the primary user give the same error. Inside the app bundle I of course copied all non-system dylib-s into Contents/lib, and used install_name_tool to modify all executables and dylib-s to reference them there. This used to work, but with an older version of the app bundle.

Sudo hdiutil create john users shared john.dmg download

Sudo Hdiutil Create John Users Shared John.dmg Free

In an attempt to fix this, I just re-installed Mac OS X (Mavericks), and did software update. No change.