How should I implement an auto-updater?

后端 未结 16 1155
名媛妹妹
名媛妹妹 2020-12-04 06:11

Many programs include an auto-updater, where the program occasionally looks online for updates, and then downloads and applies any updates that are found. Program bugs are f

16条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 06:33

    Be sure to also consider the security implications of sucking down information about the update, as well as the update binaries themselves.

    Do you trust the source of the download? You maybe phoning home to got your update, but what if there is a man in the middle who redirects to a malicious server. An HTTPS or similar secure connection will help, but double checking the bits that you eventually download by using a digital signature check is recommended.

提交回复
热议问题