| 169 | |
| 170 | |
| 171 | |
| 172 | == Obtaining the latest release == |
| 173 | |
| 174 | '''This is a new untested distribution method. It might be best to stick with SVN for now, while we sort this out over the next few days.''' |
| 175 | |
| 176 | === Linux packages === |
| 177 | |
| 178 | Unofficial packages may exist or be in development for several distros: |
| 179 | * [http://bugs.gentoo.org/show_bug.cgi?id=278541 Gentoo] |
| 180 | * [http://aur.archlinux.org/packages.php?ID=28560 Arch] |
| 181 | * [https://bugs.launchpad.net/getdeb.net/+bug/543277 Ubuntu] |
| 182 | If you use a different distro, or if these packages are outdated, or if you want to edit or debug the code, see the next section. |
| 183 | |
| 184 | === Compiling on Linux and OS X === |
| 185 | |
| 186 | You need two files: |
| 187 | * [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-unix-build.tar.xz 0ad-unix-build.tar.xz] (6 MB) ''or'' [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-unix-build.tar.bz2 0ad-unix-build.tar.bz2] (8 MB) |
| 188 | * [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-unix-data.tar.xz 0ad-unix-data.tar.xz] (92 MB) ''or'' [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-unix-data.tar.bz2 0ad-unix-data.tar.bz2] (106 MB) |
| 189 | The `.xz` files are smaller but may require you to install [http://tukaani.org/xz/ XZ Utils]. |
| 190 | |
| 191 | SHA1 digests: |
| 192 | {{{ |
| 193 | 57d61f2bee26666d8e89e9952a6c2b532dd6e030 0ad-r07405-pre-alpha-unix-build.tar.xz |
| 194 | eaaa0094a8baeaf3d3a11792b7272b397f2ca84c 0ad-r07405-pre-alpha-unix-build.tar.bz2 |
| 195 | 2a5837141579f77f3b3b5f3d2e83b490dbef9bc5 0ad-r07405-pre-alpha-unix-data.tar.xz |
| 196 | a30fc818807a40225bb792892ffd91a1c86fadfe 0ad-r07405-pre-alpha-unix-data.tar.bz2 |
| 197 | }}} |
| 198 | |
| 199 | Extract both files to the same location: |
| 200 | {{{ |
| 201 | # Extract .xz version into the current directory: |
| 202 | tar xvJf 0ad-r07405-pre-alpha-unix-build.tar.xz |
| 203 | tar xvJf 0ad-r07405-pre-alpha-unix-data.tar.xz |
| 204 | # Or, if your tar is older than 1.22: |
| 205 | xz -cd 0ad-r07405-pre-alpha-unix-build.tar.xz | tar xv |
| 206 | xz -cd 0ad-r07405-pre-alpha-unix-data.tar.xz | tar xv |
| 207 | # Or, if you have the .bz2 version: |
| 208 | tar xvjf 0ad-r07405-pre-alpha-unix-build.tar.bz2 |
| 209 | tar xvjf 0ad-r07405-pre-alpha-unix-data.tar.bz2 |
| 210 | }}} |
| 211 | |
| 212 | Then follow the SVN build instructions. |
| 213 | |
| 214 | === Windows === |
| 215 | |
| 216 | Download and run [http://releases.wildfiregames.com/0ad-r07405-pre-alpha-win32.exe 0ad-win32.exe] (114 MB) (self-extracting [http://www.7-zip.org/ 7-Zip]), then select a location to extract the files. This includes all the source code and data files, and precompiled binaries. |
| 217 | |
| 218 | SHA1 digest: |
| 219 | {{{ |
| 220 | 76f4ba98ef0f6e05eac9ff2a1b83ca767b181da3 0ad-r07405-pre-alpha-win32.exe |
| 221 | }}} |
| 222 | |
| 223 | Either follow the SVN build instructions, or run binaries\system\pyrogenesis.exe directly. |
| 224 | |
| 225 | == Creating Linux packages == |
| 226 | |
| 227 | This section is for people creating installable packages for Linux distros. |
| 228 | |
| 229 | Download the `build` tarball listed above. Follow the SVN build instructions. The default is an unoptimised debug-mode build (this is helpful since the game is unstable and buggy); if you want an optimised harder-to-debug build instead, compile with `CONFIG=Release make`. |
| 230 | |
| 231 | Run the automated tests to make sure nothing is broken: extract the `data` tarball alongside the `build` one, then run `./test_dbg` (or `./test` for Release builds) from `binaries/system/`. There should be no error output. |
| 232 | |
| 233 | You need to distribute the following files from `binaries/system/`: |
| 234 | * `pyrogenesis_dbg` (Debug build) or `pyrogenesis` (Release build) |
| 235 | * `libCollada_dbg.so` or `libCollada.so` |
| 236 | * `libAtlasUI_dbg.so` or `libAtlasUI.so` |
| 237 | * `libmozjs-ps-debug.so` or `libmozjs-ps-release.so` |
| 238 | You also need to distribute the contents of the `data` tarball. You don't need to distribute anything from the `build` tarball. The executables should be located somewhere so that they can use `../data/` to access the `data` tarball's `binaries/data/` directory. (They don't need to be in a directory called `system/`, and that directory doesn't need to be in one called `binaries/`, if you prefer different names). The whole thing should probably go somewhere like `/opt/0ad/`, and you might want to set up a script with a nice name like `/usr/bin/0ad` to run it, depending on local conventions. |
| 239 | |
| 240 | These directories and files should be read-only; all per-user output goes in XDG basedir locations (unless we have bugs). |