Mac OS X中的应用程序更新

问题描述:

要在Windows中提供应用程序更新,我们只需下载安装程序并运行它即可.应用程序安装在%PROGRAMFILES%中,快捷方式放置在各个位置.键和值将添加到注册表中,以在系统的程序"列表中提供一个条目.

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.

要在Linux中提供应用程序更新,我们可以使用系统的程序包管理器.

To provide application updates in Linux, we can use the system's package manager.

如何在Mac OS X中提供应用程序更新?我认为通常您只是将.app捆绑包拖到/Applications?除了在/Applications文件夹中查找"以外,系统是否提供其他类型的注册表?更新的一般流程是否应该仅涉及下载打开的DMG文件,提示用户将新的应用程序捆绑包拖到/Applications中?将应用程序捆绑包复制到文件夹之前,会在复制之前删除现有捆绑包吗,还是像普通文件夹一样工作(例如,添加和替换现有文件)?我只想了解一些有关如何实现与Mac OS X应用程序预期一致的检查更新"功能的一般信息.

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.

听起来您应该研究 Sparkle .

以我作为Mac 用户(不是Cocoa开发人员)的经验,它已成为自我更新应用程序的事实上的标准,除了Microsoft Office和Adobe CS之类的独石之外.

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.