hdiutil create -size 32m -fs HFS+ -volname "My App" my_app_writeable.dmg
hdiutil create -size 32m -fs HFS+ -volname "My App" my_app_writeable.dmg
```
```
2. This should tell you something like `/dev/disk3` or something. Make a note of that, you'll need it.
2. Attach `my_app_writeable.dmg`. This should tell you something like `/dev/disk3` or something. Make a note of that, you'll need it for the next step.
```
```
hdiutil attach my_app_writeable.dmg
hdiutil attach my_app_writeable.dmg
```
```
3. Drag your app into the dmg. Then run this, replacing `disk999` with whatever `/dev/disk` was specified.
3. Drag your app into the dmg. Then run this, replacing `disk999` with whatever `/dev/disk` was specified in the previous step.