Max.1974 Posted September 13, 2025 Share Posted September 13, 2025 (edited) 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 Prepare your app Place your .app bundle (or any file/folder) in a convenient location (e.g., Desktop). Run the DMG Creator Double-click the create-dmg executable. The script will open in a Terminal window automatically. Drag & Drop your app When prompted, drag your .app file into the Terminal window and press Enter. Choose the DMG name Type the desired name (without extension). If left empty, the app’s name will be used. 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. Confirm layout When the DMG window looks correct, return to Terminal and press Enter. 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). DMG-Creator-EN.dmg DMG-PT-BR-Folder.dmg Edited September 13, 2025 by Max.1974 6 Link to comment https://www.insanelymac.com/forum/topic/361674-dmg-creator-drag-drop-using-terminal/ Share on other sites More sharing options...
STLVNUB Posted September 13, 2025 Share Posted September 13, 2025 Nice, But What Do You Do With The DMG Once It's Created? 1 Link to comment https://www.insanelymac.com/forum/topic/361674-dmg-creator-drag-drop-using-terminal/#findComment-2840582 Share on other sites More sharing options...
Max.1974 Posted September 13, 2025 Author Share Posted September 13, 2025 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. Link to comment https://www.insanelymac.com/forum/topic/361674-dmg-creator-drag-drop-using-terminal/#findComment-2840585 Share on other sites More sharing options...
STLVNUB Posted September 14, 2025 Share Posted September 14, 2025 (edited) 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 September 14, 2025 by STLVNUB 1 Link to comment https://www.insanelymac.com/forum/topic/361674-dmg-creator-drag-drop-using-terminal/#findComment-2840586 Share on other sites More sharing options...
Max.1974 Posted September 14, 2025 Author Share Posted September 14, 2025 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 5 Link to comment https://www.insanelymac.com/forum/topic/361674-dmg-creator-drag-drop-using-terminal/#findComment-2840588 Share on other sites More sharing options...
STLVNUB Posted September 14, 2025 Share Posted September 14, 2025 7 hours ago, Max.1974 said: On REVE website https://preview.reve.art/app You need prompt your imagem I Meant How Did You PUT The Icon On Your Script 1 Link to comment https://www.insanelymac.com/forum/topic/361674-dmg-creator-drag-drop-using-terminal/#findComment-2840596 Share on other sites More sharing options...
Max.1974 Posted September 15, 2025 Author Share Posted September 15, 2025 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 icon change.mp4 4 Link to comment https://www.insanelymac.com/forum/topic/361674-dmg-creator-drag-drop-using-terminal/#findComment-2840662 Share on other sites More sharing options...
Recommended Posts