Automatic Software Updater: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Hendrik Brummermann |
imported>Kasgel No edit summary |
||
| (49 intermediate revisions by 4 users not shown) | |||
| Line 12: | Line 12: | ||
== Internals == |
== Internals == |
||
== Documentation == |
|||
| ⚫ | |||
This section describes how to implement the use cases mentioned above. |
|||
=== Adding resources to the production client (U4) === |
|||
It is easy to add resources such as sounds and images to an official client by creating the folder structure next to the .jar files. So far example create a folder data/sound and place new ogg files in there. |
|||
=== Creating a simple, normal build without signing (U3, U6) === |
|||
This is the easiest variant, just use Eclipse to [[Configure_a_development_environment_(IDE)|setup a development environment]] or [[HowToBuildStendhal|ant dist]] to do a unsigned build. The unsigned build is fully workable except for the updater. |
|||
In most cases you don't need the updater: The official one is incompatible with your changes and setting up your own one is quite a bit of work that may not worth the trouble. |
|||
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. |
|||
| ⚫ | |||
* '''Important:''' In the folder stendhal/src/games/stendhal/client/update copy game-default.properties to game.properties and change the GAME_NAME variable. This is vital because otherwise your updates and the official ones get mixed up. |
* '''Important:''' In the folder stendhal/src/games/stendhal/client/update copy game-default.properties to game.properties and change the GAME_NAME variable. This is vital because otherwise your updates and the official ones get mixed up. |
||
| Line 24: | 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 |
* 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 |
||