简体   繁体   English

Mac pkg安装程序分发

[英]Mac pkg installer distribution

I have build a flat package installer (meaning it is just a single pkg file) for Mac. 我已经为Mac构建了一个平面软件包安装程序(这意味着它只是一个pkg文件)。 Normally Mac installers are distributed inside a disk image (dmg) file. 通常,Mac安装程序分布在磁盘映像(dmg)文件中。 I know how to create a dmg file containing the pkg file, but I am wondering if this is necessary. 我知道如何创建包含pkg文件的dmg文件,但是我想知道是否有必要。 Is there are reason why it is better to distribute the installer inside a disk image? 有理由为什么最好在磁盘映像中分发安装程序?

Mac applications are often distributed as DMG, but that was mostly because Mac .app bundles are really a directory tree, not a single file. Mac应用程序通常以DMG的形式分发,但这主要是因为Mac .app捆绑包实际上是目录树,而不是单个文件。 If you have a single-file .pkg , it is probably fine to distribute as-is. 如果您使用单个文件.pkg ,则可以按原样分发。

Note: in earlier versions of OS X this was true of .pkg also, but it has not been the case for some time, .pkg are now single file xar archives. 注意:在OS X的早期版本中,.pkg也是如此,但是一段时间以来情况并非如此,.pkg现在是单文件xar存档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM