如何编写 Mac 软件包以在不需要 Lion 管理员权限的情况下进行安装?

发布于 2024-12-04 06:03:38 字数 343 浏览 7 评论 0原文

我试图了解如何修复在 Packagemaker(随 Xcode 2.4.1 附带)中开发的 Mac 软件包,以便在作为标准用户运行时安装在 OS Lion 10.7 上,而不需要管理员权限。在 10.4、10.5、10.6 中,我能够以标准用户身份安装此软件包,无需管理员权限。该包的内容将安装到用户的主文件夹中,因此不需要额外的权限。

有谁知道该怎么做?或者为什么该包现在需要 root 权限?

或者有谁知道 OS Lion 中是否有新的限制,即所有安装都需要管理权限,而不是拥有应用程序包,只需将应用程序包拖到您的主文件夹中?

我查看了developer.apple.com,但没有找到任何信息。

布莱恩

I'm trying to understand how to fix my Mac package developed in Packagemaker (that comes with Xcode 2.4.1) to install on OS Lion 10.7 without requiring admin privileges when it is being run as a standard user. In 10.4, 10.5, 10.6, I was able to install this package as a standard user without admin privileges. The contents of the package are installed into the user's home folder, so no additional privileges should be required.

Does anyone know how to do this? Or why the package would now require root permissions?

Or does anyone know if there are new restrictions in OS Lion that all installations require administrative privileges short of having an app bundle package that you just drag the app bundle to your home folder?

I looked on developer.apple.com, but haven't been able to find any information.

Brian

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

失眠症患者 2024-12-11 06:03:38

这可能是软件供应商(在本例中是您)的信任问题。

http://www.bu.edu/infosec/howtos/bypass-gatekeeper -safely/

默认情况下,Gatekeeper 设置为“Mac App Store 和已确定的开发人员”。这意味着运行 Mountain Lion 的 Mac 只能运行您从 App Store 下载的应用程序或已使用官方 Apple 开发者 ID 签名的应用程序。这有助于防止恶意软件感染您的计算机,因为它使用户更难安装冒充真实应用程序的恶意软件。

您必须使用您的开发者 ID 对安装包进行签名。很有可能,该版本的 packagemaker 不会提示您进行此操作,或者不太明显如何操作。请参阅有关狮子签名的内容。 制作 OS X 安装程序像 Pro - Xcode Developer ID Ready pkg 这样的软件包

It is likely an issue with the trust of the software vendor, in this case, you.

http://www.bu.edu/infosec/howtos/bypass-gatekeeper-safely/

By default, Gatekeeper is set to ‘Mac App Store and identified developers.’ This means that a Mac running Mountain Lion will only run applications you have downloaded from the App Store or applications that have been signed with an official Apple Developer ID. This helps to prevent malware from infecting your computer, as it makes it harder for malicious software posing as real applications to be installed by the user.

You have to sign your installation packages with your developer ID. Odds are, that version of packagemaker does not prompt you for it, or it is less obvious how to do it. See this about signing for lion. Making OS X Installer Packages like a Pro - Xcode Developer ID ready pkg

半寸时光 2024-12-11 06:03:38

确保默认情况下仅为一名用户安装。如果它为所有用户安装,则需要 root。

Make sure that it installs for just one user by default. If it does an install for all users root is required.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文