应用程序启动器如何自我更新?

应用程序启动器如何自我更新?,第1张

应用程序启动器如何自我更新?

我从未尝试过,但这就是我的猜测(假设您无法覆盖正在执行的文件。如果可以,这一切都比较简单)

Updater A checks if its the newest versionIf launcher isnt the newest version    Download the differences (to save bandwidth) to file B    Apply the delta to own pre into file C    Launch file C.    CloseIf file C exists (update happened recently)    Try to delete C  (update was previous launch, delete temporary file)    If delete fails  (We are C, means A is out of date)        Copy C over A  (update launcher)        Note that you can keep going, dont have to restart even though we are C.If game isnt newest version    Download the differences (to save bandwidth) to file B    Apply the delta to game into file D    delete game    Rename D -> gameRun game


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5616499.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存