Automatic Software Updater: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>Hendrik Brummermann
imported>Hendrik Brummermann
Line 12: Line 12:
== Internals ==
== Internals ==


== Documentation ==
== Creating an automatic updater ==

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.

=== Creating an automatic updater (U7) ===


* '''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.