Automatic Software Updater: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
imported>Kasgel
No edit summary
 
(27 intermediate revisions by 4 users not shown)
Line 27: Line 27:




If you are packing the Stendhal client for a Linux distribution, consider to just include a start-menu entry to the webstart-client and the required java dependencies: <nowiki>javaws http://arianne.sf.net/jws/stendhal.jnlp</nowiki> for the general client or <nowiki>https://stendhalgame.org/account/mycharacters.html</nowiki> for a client specific to the official server. This way you comply with the distribution policies that you need to recompile the code (there is no code in the package). But the client will automatically get our updates and people will not get angry at you or us because it is out of date compared to the official server.
If you are packing the Stendhal client for a Linux distribution, consider to just include a start-menu entry to the webstart-client and the required java dependencies: <nowiki>javaws http://arianne.sf.net/jws/stendhal.jnlp</nowiki> for the general client or <nowiki>https://stendhalgame.org/account/mycharacters.html</nowiki> for a client specific to the official server. This way you comply with the distribution policies that you need to recompile the code (there is no code in the package). But the client will automatically get our updates and people will not get angry at you or us because it is out of date compared to the official server. We do put a lot of effort into supporting old clients, but there are often minor glitches.


=== Creating an automatic updater (U7) ===
=== Creating an automatic updater (U7) ===
Line 41: Line 41:
* Export the certificate to a file in stendhal/src/games/stendhal/client/update and adjust the variables in the "Automatic Updates" section
* Export the certificate to a file in stendhal/src/games/stendhal/client/update and adjust the variables in the "Automatic Updates" section


* Create a file build.ant-private.properties in the stendhal root folder with two entries: keystore.alias and keystore.password
* Create a file build.ant-private.properties in the stendhal root folder with three entries: keystore.alias, keystore.update-alias and keystore.password. The first two variables should be the same.


* Make sure you never ever give keystore.ks or the build.ant-private.properties away
* Make sure you never ever give keystore.ks or the build.ant-private.properties away