Which one is better: DMG or PackageMaker

吃可爱长大的小学妹 提交于 2019-12-23 03:42:16

问题


Here's my requirement: 1. I want my installable to have a custom license agreement 2. run another package as part of the installation 3. let the user have an option of running the app on start-up

What should I use, create a dmg or use PackageMaker available with xcode? Are there any good web pages showing how to use PackageMaker?

Thanks.


回答1:


They serve different purposes:

  • DMG (disk images) is just a container file format to solve age-old issues with multi-fork files and transfer protocols and intermediate hosts that can't handle them, by not relying on them in the first place. In addition, the disk images can use internal compression. Your users will thank you for not confusing them with file wrapped in file wrapped in file (although disk images themselves take some explaining initially).

  • PackageMaker is a full-fledged installer package builder. You can customize the installation process and locations, do sub-installations and pretty much anything else you could possibly need. If your installation entails more than just dragging and dropping an application bundle into place, this is the one to go with.

From your requirements, the choice seems obvious. Since an installer package is itself a bundle, I'd say: create an installer package with PackageMaker and put it in a compressed disk image. Distribute the disk image to your users. It just provides a nicer experience.



来源:https://stackoverflow.com/questions/368022/which-one-is-better-dmg-or-packagemaker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!