In FMX, are using a .dmg to install an application bundle on MacOS

In FMX, are using a .dmg to install an application bundle on MacOS

We want to include a zip file in the install.

Below is our plan. Is this a reasonable approach?

1. In IDE, select Project Deployment and add the zip file. Question: is there a particular remote path we should put it in? Contents\Resources\Startup seems to be the default suggested by the IDE. We thought we'd put the file in a new folder, perhaps: Contents\OurResources. This will differentiate it from files deployed by the IDE.

2. Each time our app is run by the user, we'll finish the install by checking if zip file's contents exist in HOME directory's [Our application name]\ (or perhaps the Library directory for non-user files) If the files aren't found, we'll unzip them from Contents\OurResources.

What is the "right" way to find the path to the bundle, our application's Contents\OurResources folder? I've seen this suggested online: X.Env.ExeFolder to which we'd append the rest of the path.

PS I've debated whether to post this to SO, EMB forums, or here, deciding this was the best place. I'd appreciate any thoughts you all have about whether this posting is appropriate to G+.

Comments

  1. You can, also, attach the zip file to the resources and images in the project and let Delphi take care of that. Then you will treat it as a pure resource

    ReplyDelete
  2. also now it seems that the /users/[yourusername]/ folder is a cloud folder too on the latest OSX version.

    ReplyDelete
  3. re make them less visible , if they are in the actual application.app bundle,ie under contents/resources/ then they are not easily found...the user has to right mouse click on the application icon and select to open the bundle

    ReplyDelete

Post a Comment