How should I implement an auto-updater?

后端 未结 16 1138
名媛妹妹
名媛妹妹 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:30

    In a Java-Webstart setting you start a JNLP file which then triggers the download of the Jar files needed to run the application. Everytime webstart checks if there are newer versions of the Jars and would download them replacing the locally cached ones. With a tool named jardiff you will create only diffs towards the newer jars and distribute these via the server (e.g. only get an update).

    Pros:

    • always up to date

    Cons:

    • you need an application server (tomcat, JBoss) in order to distribute the files
    • you need an internet connection in order to get the application

提交回复
热议问题