Jump to content
7 posts in this topic

Recommended Posts

 

 

DMG Creator 

This tool creates a macOS DMG installer with a drag-and-drop window (your app on the left, Applications folder on the right).


📦 Requirements

  • macOS (tested on 10.13+ up to Sonoma/Tahoe).

  • No extra dependencies (uses built-in hdiutil and osascript).


▶️ How to Use

  1. Prepare your app
    Place your .app bundle (or any file/folder) in a convenient location (e.g., Desktop).

  2. Run the DMG Creator

    • Double-click the create-dmg executable.

    • The script will open in a Terminal window automatically.

  3. Drag & Drop your app
    When prompted, drag your .app file into the Terminal window and press Enter.

  4. Choose the DMG name

    • Type the desired name (without extension).

    • If left empty, the app’s name will be used.

  5. Wait for Finder setup
    A temporary DMG will mount and open in Finder.
    You’ll see your app icon and an Applications shortcut side by side.

  6. Confirm layout
    When the DMG window looks correct, return to Terminal and press Enter.

  7. Done 🎉
    The final DMG will be created on your Desktop.
    Example:

    DMG created at: /Users/YourName/Desktop/MyApp.dmg
    

🧹 Cleanup

All temporary files are automatically removed after the DMG is created.


Example Session

=== DMG Creator ===
Drag the file into the terminal and press Enter:
Selected file: MyApp.app
Name for the DMG (without extension): MyApp
Creating DMG: MyApp.dmg
Press Enter after the DMG window appears correctly...
DMG created at: /Users/YourName/Desktop/MyApp.dmg

 

This tool is written in Shell Script (Bash) with an embedded AppleScript block (to configure Finder window layout).
It creates a macOS DMG installer with a drag-and-drop window (your app on the left, Applications folder on the right).

 

c742c375-38bb-438b-8194-3419bf3ca1fb.thumb.png.9fba6d62946ce2c55ba67619bdeb33b2.png

 

 

DMG-Creator-EN.dmg

 

 

DMG-PT-BR-Folder.dmg

CapturadeTela2025-09-13s17_03_30.png.50801c4f2d75f1c5e7e7ac4d016fd845.png

 

 

Edited by Max.1974
  • Like 6
1 hour ago, STLVNUB said:

Nice, But What Do You Do With The DMG Once It's Created?

 

Hi @STLVNUB This application aims to save an app or a folder into a DMG for distribution. It’s widely used to package EFI or any file you want to preserve, unlike a ZIP.

It makes things much easier, especially for those who often create apps and want to distribute them. ;) 

 

 

1 hour ago, Max.1974 said:

 

Hi @STLVNUB This application aims to save an app or a folder into a DMG for distribution. It’s widely used to package EFI or any file you want to preserve, unlike a ZIP.

It makes things much easier, especially for those who often create apps and want to distribute them. ;) 

 

 

ok sounds great ;)

 

Edit: How Did You Get The Icon On The Script File?

Edited by STLVNUB
  • Like 1
53 minutes ago, STLVNUB said:

ok sounds great ;)

 

Edit: How Did You Get The Icon On The Script File?

On REVE website 

 

https://preview.reve.art/app 

 

You need prompt your imagem 

 

image.thumb.png.ba223684cee3b8804d9af28c05a1619d.png

  • Like 5
7 hours ago, Max.1974 said:

On REVE website 

 

https://preview.reve.art/app 

 

You need prompt your imagem 

 

image.thumb.png.ba223684cee3b8804d9af28c05a1619d.png

I Meant How Did You PUT The Icon On Your Script

  • Haha 1
On 9/14/2025 at 5:30 AM, STLVNUB said:

I Meant How Did You PUT The Icon On Your Script

@STLVNUB 

I’m sorry my friend, for the delay.

To change the icon, you need to open the application with Command + I, then press Command + C (copy) on the icon you want.

After that, open the folder where you want to place the icon in the same way, and press Command + V to paste it into the empty icon field.

And you also can use the Image2Icon app for this. ;) 

 

Follow this video: 

 

Spoiler

 

 

  • Like 4
×
×
  • Create New...