Help with Mac Os Installer .dmg

Hi.

I am trying to do a .dmg installer with the typical background image in the folder that tells the user to drag to the Applications folder.

I have created the image, I assign it at the folder and set icon’s siza. When I open the folder it looks perfectly.

But when I generate the dmg. It works fine but the background image it’s not shown and also it does not respect the size of the icons that I had set.
Also, when I open the computer the next day I see that the image and the set on the folder has also been lost.

I’m in mojave & 4D 18R2

$command:=“hdiutil create -format UDBZ -plist -srcfolder “+$applicationpath+” “+$archivepath
SET ENVIRONMENT VARIABLE(”_4D_OPTION_BLOCKING_EXTERNAL_PROCESS”;“TRUE”)
LAUNCH EXTERNAL PROCESS($command;$stdIn;$stdOut;$stdErr;$pid)

Does anyone have any idea what I’m doing wrong?

T.I.A.

it’s a generic Mac question so you should really Google that.

just a top result, I don’t know if it is the best. there are many pages on the topic.

https://github.com/andreyvit/create-dmg

You could also consider using some already functional utility like DropDMG.
If you consider time to study and make functional your propre solution, it is really not expensive.

Miyako & Manuel

Thank you.

Here an excellent tool that can be of help

https://www.araelium.com/dmgcanvas

Many positive feedbacks from many 4D developer here in Switzerland…

Thank you Maurice.
I`ll take in account.
But I want to try doing only with 4D & Mac Os (Terminal)

Hi Manuel,

did you made a a signed application with DropDMG?
If yes, can you share a how to (I block with the “sign” part).

Patrick

Hi Patrick,

You should not confuse, a signed .app and a signed .dmg
Actually, I do the two.

For signing the .dmg you should have an Apple developer ID registered on your computer in your Keychain so you can select it in the DropDMG popup.

For the moment, I only use it with “OLD” macOS (not Catalina) so I don’t know if the new notarization rules work.

Hope this help you.

Here is also the link you should have more answers https://c-command.com/dropdmg/here>

Like https://c-command.com/dropdmg/help/signingthis part from the manual>.

Thanks Manuel!