Mac OS X 中的应用程序更新
要在 Windows 中提供应用程序更新,我们只需下载安装程序并运行它即可。应用程序安装在%PROGRAMFILES%中,快捷方式放置在不同的地方。键和值被添加到注册表中,以在系统的程序列表中提供一个条目。
为了在Linux中提供应用程序更新,我们可以使用系统的包管理器。
如何在 Mac OS X 中提供应用程序更新?我认为一般来说您只需将 .app 包拖到 /Applications 即可?除了“查看/Applications文件夹”之外,系统是否提供任何类型的注册表?一般的更新流程是否应该只涉及下载并打开 DMG 文件,提示用户将新的应用程序包拖到 /Applications 中?将应用程序包复制到文件夹会在复制之前删除现有的包,还是会像普通文件夹一样(例如添加和替换现有文件)?我只是想要一些关于我如何知道如何实现与 Mac OS X 应用程序的预期一致的“检查更新”功能的一般信息。
To provide application updates in Windows, we can simply download the installer and run it. Applications are installed in %PROGRAMFILES% and shortcuts are placed in various places. Keys and values are added to the registry to provide an entry in the system's Programs list.
To provide application updates in Linux, we can use the system's package manager.
How do you provide application updates in Mac OS X? I think in general you simply drag .app bundles to /Applications? Does the system provide any sort of registry other than "look in /Applications folder"? Should the general flow of updating simply involve downloading an opening a DMG file, prompting the user to drag the new application bundle into /Applications? Will copying an app bundle to a folder delete the existing bundle before copying, or does it act like a normal folder (e.g. add and replace existing files)? I'd just like some general information on how I know go about implementing a 'check for updates' feature consistent with what's expected for a Mac OS X application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来你应该看看 Sparkle。
根据我作为 Mac 用户(而不是 Cocoa 开发人员)的经验,它已经成为自我更新应用程序的事实标准,除了 Microsoft Office 和 Adobe CS 等少数应用程序之外。
It sounds like you should look into Sparkle.
In my experience as a Mac user (not a Cocoa dev), it's become the de facto standard for self-updating apps, save for a few monoliths like Microsoft Office and Adobe CS.