From The Mana World
m (Update from 0.0.28.1 Git commit)
(step-by-step guide for creating a windows installer)
Line 37: Line 37:
* http://happypenguin.org/ - ?
* http://happypenguin.org/ - ?
* [http://packages.gentoo.org/packages/?category=games-rpg;name=tmw http://packages.gentoo.org/...] - [[User:Bjørn|Bjørn Lindeijer]] emails [mailto:games@gentoo.org Games herd]
* [http://packages.gentoo.org/packages/?category=games-rpg;name=tmw http://packages.gentoo.org/...] - [[User:Bjørn|Bjørn Lindeijer]] emails [mailto:games@gentoo.org Games herd]
=== Creating a windows installer===
# [[Git|Clone the git repository of the eAthena client]]. The directory where you have the cloned repository will now be referred to as "TMW"
# Get [http://nsis.sourceforge.net Nullsoft Scriptable Install System]
# Get [http://www.codeblocks.org/ Code::Blocks] and all [[Dependencies#Installing_the_dependencies_on_Windows|libraries]].
# Get [http://gnuwin32.sourceforge.net/packages/gettext.htm Gettext for windows]
# Get the [http://sourceforge.net/project/showfiles.php?group_id=106790&package_id=199743 music package] and put it into the TMW/data directory (so you have TMW/data/music/*.ogg)
# Open TMW/tmw.cbp with Code::Blocks and compile the project
# Copy msgfmt.exe and all DLL files from the directory "bin" of your gettext installation to TMW/packaging/windows
# Run the visual basic script TMW/packaging/windows/make-translations.vbs to compile the gettext translation files
# Run the NSIS script TMW/packaging/windows/setup.nsi using NSIS
You will now have a distributable installer in TMW/packaging/windows/

Revision as of 13:35, 12 February 2009

Updating the version and release date

The program version and release date are mentioned in several places. Some other places are also important to check before making a release.

  • configure.ac (version)
  • CMakeLists.txt (version)
  • src/main.h (version)
  • src/winver.h (version)
  • README (version and release date)
  • INSTALL (dependencies and their versions)
  • NEWS (version, release date and changes)
  • data/help/header.txt (version and release date)
  • data/help/changes.txt (version, release date and changes)

Making a clean tarball

Authors and packagers should work on making a clean tarball, which has no .git folders, no Makefiles, no .deps folders, etc... That kind of clean is needed when uploading sources such as for debian, and can be obtained thanks to make dist, with automake.

To test that the distribution compiles and installs with just the files included in the release, make distcheck can be used. However, you should also make sure that it actually runs.

Notifying the package maintainers and websites

Normally first the source and Windows releases are made. After verifying everything works with several people for at least a day, the release will be tagged in Git. At that point the release is official and the package maintainers should get started on producing their package.

The following people are responsible for updating their packages:

The following people are responsible for updating the respective websites:

Creating a windows installer

  1. Clone the git repository of the eAthena client. The directory where you have the cloned repository will now be referred to as "TMW"
  2. Get Nullsoft Scriptable Install System
  3. Get Code::Blocks and all libraries.
  4. Get Gettext for windows
  5. Get the music package and put it into the TMW/data directory (so you have TMW/data/music/*.ogg)
  6. Open TMW/tmw.cbp with Code::Blocks and compile the project
  7. Copy msgfmt.exe and all DLL files from the directory "bin" of your gettext installation to TMW/packaging/windows
  8. Run the visual basic script TMW/packaging/windows/make-translations.vbs to compile the gettext translation files
  9. Run the NSIS script TMW/packaging/windows/setup.nsi using NSIS

You will now have a distributable installer in TMW/packaging/windows/