Skip to content

Instantly share code, notes, and snippets.

@jooneyp
Forked from jadeatucker/HOWTODMG.md
Created November 2, 2017 04:25
Show Gist options
  • Select an option

  • Save jooneyp/4194140355fcbfe50d828fe42ac4d184 to your computer and use it in GitHub Desktop.

Select an option

Save jooneyp/4194140355fcbfe50d828fe42ac4d184 to your computer and use it in GitHub Desktop.

Revisions

  1. @jadeatucker jadeatucker revised this gist Apr 14, 2013. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions HOWTODMG.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,10 @@
    Creating a "DMG installer" for OS X
    ======
    A DMG Installer is convenient way to provide end-users a simple way to install
    an application bundle. They are basically a folder with a shortcut to the Applications
    directory but they can be customized with icons, backgrounds, and layout properties.
    A DMG file (.dmg) is a Mac OS X Disk Image file and it is used to package files or folders
    providing compression, encryption, and read-only to the package.

    ##Creating the DMG file
    #Disk Utility
  2. @jadeatucker jadeatucker revised this gist Apr 14, 2013. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion HOWTODMG.md
    Original file line number Diff line number Diff line change
    @@ -11,8 +11,11 @@ open /Applications/Utilities/Disk\ Utility.app/

    __File__ -> __New__ -> __Disk Image from Folder__
    or __CMD+SHIFT+N__

    Select the folder `myapp.app/` when prompted then click `Image`.

    In the `Save As` field enter a name for the file like `myapp.dmg`.

    From the `Image Format` drop-down select `read/write` then click `Save`.

    #Edit Folder Preferences
    @@ -32,11 +35,14 @@ ln -s /Applications Applications
    ```

    In Finder press __CMD+1__ to switch to icon view and arrange icons as needed.

    Press __CMD+J__ to show the View Options window and
    adjust view settings as needed.

    From `Background:` section choose `Picture` then
    Drag and drop the image you want to use as the
    background where it says `Drag image here`.

    Unmount/Eject the dmg when finished with View Options
    or from Terminal:
    ```
    @@ -46,8 +52,10 @@ umount /Volumes/myapp/
    #Compress and convert to Read-only
    From Disk Utility right-click on myapp.dmg disk image and
    select `Convert "myapp.dmg"`.

    In the `Save As` field enter a new name for the file like `myappfinal.dmg`.
    From the `Image Formate` drop-down select `read-only` then click `Save`.

    From the `Image Formate` drop-down select `read-only` then click `Save`
    or from Terminal:
    ```
    hdiutil convert -format UDZO -o myappfinal.dmg myapp.dmg
  3. @jadeatucker jadeatucker revised this gist Apr 14, 2013. 1 changed file with 27 additions and 29 deletions.
    56 changes: 27 additions & 29 deletions HOWTODMG.md
    Original file line number Diff line number Diff line change
    @@ -4,56 +4,54 @@ Creating a "DMG installer" for OS X
    ##Creating the DMG file
    #Disk Utility
    Type `Disk Utility` into Spotlite __CMD+SPACEBAR__ from Finder
    or
    From Terminal:
    `open /Applications/Utilities/Disk\ Utility.app/`
    or from Terminal:
    ```
    open /Applications/Utilities/Disk\ Utility.app/
    ```

    __File__ -> __New__ -> __Disk Image from Folder__
    or
    __CMD+SHIFT+N__
    Select the folder `myapp.app/` when prompted then click `Image`
    In the `Save As` field enter a name for the file like `myapp.dmg`
    From the `Image Format` drop-down select `read/write`
    Click `Save`
    or __CMD+SHIFT+N__
    Select the folder `myapp.app/` when prompted then click `Image`.
    In the `Save As` field enter a name for the file like `myapp.dmg`.
    From the `Image Format` drop-down select `read/write` then click `Save`.

    #Edit Folder Preferences
    Mount the dmg and open it by double-clicking the file in Finder
    or
    From Terminal:
    or from Terminal:
    ```
    open myapp.dmg
    open /Volumes/myapp/
    ```

    Create a link/shortcut to /Applications folder by right-clicking
    on the `Applications` folder and selecting `Make Alias` then drag it into
    the dmg folder.
    or
    From Terminal:
    the dmg folder or from Terminal:
    ```
    cd /Volumes/myapp/
    ln -s /Applications Applications
    ```

    In Finder press __CMD+1__ to switch to icon view
    Arrange icons as needed
    Press __CMD+J__ to show the View Options window
    Adjust view settings as needed
    From `Background:` section choose `Picture`
    In Finder press __CMD+1__ to switch to icon view and arrange icons as needed.
    Press __CMD+J__ to show the View Options window and
    adjust view settings as needed.
    From `Background:` section choose `Picture` then
    Drag and drop the image you want to use as the
    background where it says `Drag image here`
    background where it says `Drag image here`.
    Unmount/Eject the dmg when finished with View Options
    or
    From Terminal:
    `umount /Volumes/myapp/`
    or from Terminal:
    ```
    umount /Volumes/myapp/
    ```

    #Compress and convert to Read-only
    From Disk Utility right-click on myapp.dmg disk image and
    select `Convert "myapp.dmg"`
    In the `Save As` field enter a new name for the file like `myappfinal.dmg`
    From the `Image Formate` drop-down select `read-only`
    Click `Save`
    From Terminal:
    `hdiutil convert -format UDZO -o myappfinal.dmg myapp.dmg`
    select `Convert "myapp.dmg"`.
    In the `Save As` field enter a new name for the file like `myappfinal.dmg`.
    From the `Image Formate` drop-down select `read-only` then click `Save`.
    or from Terminal:
    ```
    hdiutil convert -format UDZO -o myappfinal.dmg myapp.dmg
    ```

    #FIN
    Congratulations you are finished! Mount the new dmg to verify it is working properly.
  4. @jadeatucker jadeatucker revised this gist Apr 14, 2013. 1 changed file with 10 additions and 6 deletions.
    16 changes: 10 additions & 6 deletions HOWTODMG.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ Creating a "DMG installer" for OS X
    Type `Disk Utility` into Spotlite __CMD+SPACEBAR__ from Finder
    or
    From Terminal:
    open /Applications/Utilities/Disk\ Utility.app/
    `open /Applications/Utilities/Disk\ Utility.app/`

    __File__ -> __New__ -> __Disk Image from Folder__
    or
    @@ -20,16 +20,20 @@ Click `Save`
    Mount the dmg and open it by double-clicking the file in Finder
    or
    From Terminal:
    open myapp.dmg
    open /Volumes/myapp/
    ```
    open myapp.dmg
    open /Volumes/myapp/
    ```

    Create a link/shortcut to /Applications folder by right-clicking
    on the `Applications` folder and selecting `Make Alias` then drag it into
    the dmg folder.
    or
    From Terminal:
    cd /Volumes/myapp/
    ln -s /Applications Applications
    ```
    cd /Volumes/myapp/
    ln -s /Applications Applications
    ```

    In Finder press __CMD+1__ to switch to icon view
    Arrange icons as needed
    @@ -50,6 +54,6 @@ In the `Save As` field enter a new name for the file like `myappfinal.dmg`
    From the `Image Formate` drop-down select `read-only`
    Click `Save`
    From Terminal:
    hdiutil convert -format UDZO -o myappfinal.dmg myapp.dmg
    `hdiutil convert -format UDZO -o myappfinal.dmg myapp.dmg`

    Congratulations you are finished! Mount the new dmg to verify it is working properly.
  5. @jadeatucker jadeatucker created this gist Apr 14, 2013.
    55 changes: 55 additions & 0 deletions HOWTODMG.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,55 @@
    Creating a "DMG installer" for OS X
    ======

    ##Creating the DMG file
    #Disk Utility
    Type `Disk Utility` into Spotlite __CMD+SPACEBAR__ from Finder
    or
    From Terminal:
    open /Applications/Utilities/Disk\ Utility.app/

    __File__ -> __New__ -> __Disk Image from Folder__
    or
    __CMD+SHIFT+N__
    Select the folder `myapp.app/` when prompted then click `Image`
    In the `Save As` field enter a name for the file like `myapp.dmg`
    From the `Image Format` drop-down select `read/write`
    Click `Save`

    #Edit Folder Preferences
    Mount the dmg and open it by double-clicking the file in Finder
    or
    From Terminal:
    open myapp.dmg
    open /Volumes/myapp/

    Create a link/shortcut to /Applications folder by right-clicking
    on the `Applications` folder and selecting `Make Alias` then drag it into
    the dmg folder.
    or
    From Terminal:
    cd /Volumes/myapp/
    ln -s /Applications Applications

    In Finder press __CMD+1__ to switch to icon view
    Arrange icons as needed
    Press __CMD+J__ to show the View Options window
    Adjust view settings as needed
    From `Background:` section choose `Picture`
    Drag and drop the image you want to use as the
    background where it says `Drag image here`
    Unmount/Eject the dmg when finished with View Options
    or
    From Terminal:
    `umount /Volumes/myapp/`

    #Compress and convert to Read-only
    From Disk Utility right-click on myapp.dmg disk image and
    select `Convert "myapp.dmg"`
    In the `Save As` field enter a new name for the file like `myappfinal.dmg`
    From the `Image Formate` drop-down select `read-only`
    Click `Save`
    From Terminal:
    hdiutil convert -format UDZO -o myappfinal.dmg myapp.dmg

    Congratulations you are finished! Mount the new dmg to verify it is working properly.