简体   繁体   English

可可应用更新:应用需要下载更新,关闭应用,安装更新并重新启动更新的应用

[英]Cocoa App Update: App needs to download an update, close the app, install the update, and relaunch the updated app

I have built a Mac OS X app using Xamarin. 我已经使用Xamarin构建了Mac OS X应用程序。 I also have a XML file that dictates which users should get updates,when should the users get the updates and a few more logic. 我也有一个XML文件,该文件指示哪些用户应该获取更新,何时应该获得更新以及更多逻辑。 Ideally my app looks at the XML file, and if the user satisfies all the conditions mentioned in the XML, I want to provide an update to the User. 理想情况下,我的应用程序查看XML文件,如果用户满足XML中提到的所有条件,我想向用户提供更新。

Currently, I am able to download the dmg to the users machine, but I can't have it installed automatically. 目前,我可以将dmg下载到用户计算机上,但是无法自动安装它。

However, after downloading I want to do the following automatically: 1. Close the app 2. Install the update 3. Relaunch the updated app 但是,下载后,我想自动执行以下操作:1.关闭应用程序2.安装更新3.重新启动更新的应用程序

Until now, I read about sparkle - but however I do not think sparkle could support the XML file that I am using to drive the logic of who receives updates. 到现在为止,我已经了解了sparkle,但是我不认为sparkle可以支持我用来驱动谁接收更新逻辑的XML文件。

Do any of you have suggestions on how to achieve this? 你们中有人对如何实现这一目标有建议吗?

You could still use Sparkle. 您仍然可以使用Sparkle。 Sparkle offers a variety of hooks that allow you to use Sparkle's infrastructure without being tied to their UI or their relatively basic business logic. Sparkle提供了各种挂钩,使您可以使用Sparkle的基础结构而不受其UI或相对基本的业务逻辑的束缚。 You should look at their documentation in more detail. 您应该更详细地查看其文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM