Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Sparkle 框架在 macOS 应用程序中实现自动更新。如果可能的话,我希望在执行更新之前在某处备份应用程序的先前版本。使用 Sparkle 可以完成这样的事情吗?
Sparkle 更新器发送了大约十亿条委托消息;在允许更新继续之前,拦截其中一个以首先在某处备份您的应用程序包并不难。
我会首先在更新中寻找一个关键点,例如:
@protocol SUUpdaterDelegate <NSObject> @optional - (void)updater:(SUUpdater *)updater willDownloadUpdate:(SUAppcastItem *)item withRequest:(NSMutableURLRequest *)request;