macos OSX 的 .pkg 和 .pkg.mpkg 安装程序之间的差异

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1375663/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 06:23:26  来源:igfitidea点击:

Differences between OSX's .pkg and .pkg.mpkg installers

macosinstallermpkg

提问by Santi

I'm fighting with OSX's packageMaker as it doesn't allow me to create a '.pkg'. Instead it's forcing me to make a '.pkg.mpkg'.

我正在与 OSX 的 packageMaker 作斗争,因为它不允许我创建一个“.pkg”。相反,它迫使我制作一个“.pkg.mpkg”。

This seems like a stupid question I should be able to respond with a couple of google searches, but I'm not being able to find much info about this.

这似乎是一个愚蠢的问题,我应该能够通过几次谷歌搜索来回答,但我无法找到太多关于此的信息。

Could anyone explain the main differences between them and if you know the restriction for which you have to use one or the other?

任何人都可以解释它们之间的主要区别,并且您是否知道必须使用其中一个的限制?

回答by Collin Allen

To the best of my knowledge, .pkg files are simple, straightforward Installer packages. However, .mpkg files are very customizable, and can link to multiple .pkg files which the end user can turn on and off in the Installer.

据我所知,.pkg 文件是简单、直接的安装程序包。但是,.mpkg 文件是非常可定制的,并且可以链接到最终用户可以在安装程序中打开和关闭的多个 .pkg 文件。

I think the .pkg.mpkg double-extension you're seeing is just a text appending issue. Packages are either .pkg or .mpkg, not a combination of the two.

我认为您看到的 .pkg.mpkg 双扩展名只是一个文本附加问题。包是 .pkg 或 .mpkg,而不是两者的组合。

回答by Stabledog

I believe Collin Allen is correct -- the main difference is that the metapackage can reference other packages. But as to your PackageMaker problem, have you tried Iceberg? It's an alternative (free) that we have had generally better luck with: fewer bugs, easier to understand and use, greater freedom, etc.

我相信 Collin Allen 是正确的——主要区别在于元包可以引用其他包。但至于你的 PackageMaker 问题,你试过 Iceberg 吗?这是我们通常运气更好的替代方案(免费):更少的错误,更容易理解和使用,更大的自由等。

回答by tomwhipple

I don't have a good answer, but PackageManager automagically switched from .pkg to .mpkg once I tried to modify the text that the user sees. Both included sub installers (.pkg) prepared by vendors.

我没有一个好的答案,但是一旦我尝试修改用户看到的文本,PackageManager 就会自动从 .pkg 切换到 .mpkg。两者都包含供应商准备的子安装程序 (.pkg)。