3605
by Peter de Ridder
Provide build scripts for win32 releases |
1 |
This file is licensed under the terms of the LGPL 2.1, see the file COPYING. |
2 |
||
3 |
FILES |
|
4 |
||
5 |
README.txt This file, explaining how to build Midori. |
|
6 |
midori-0.3.3.nsi The NSIS installer creation script. |
|
7 |
||
8 |
packages.list The suse mingw packages required to build Midori. |
|
9 |
x86-mingw32-opensuse/ Install and update script for the opensuse repository. |
|
10 |
||
11 |
makedist/ Scripts to create distribution package |
|
12 |
from cross-compiled binaries and libs. |
|
13 |
||
14 |
crossconfig.sh Setup environment for cross build and run |
|
15 |
configure script for cross build. |
|
16 |
||
17 |
||
18 |
INTRODUCTION |
|
19 |
||
20 |
This document will explain how to get Midori compiling for windows, hopefully. |
|
21 |
||
22 |
||
23 |
REQUIREMENTS |
|
24 |
||
25 |
A working tool chain with the mingw compiler is required. This can either be |
|
26 |
native in Windows or a cross-chain. |
|
27 |
This tool chain must have the following applications and all applications |
|
28 |
needed to build Midori: |
|
29 |
- basename, for x86-mingw32-opensuse |
|
30 |
- bash, for the shell scripts |
|
31 |
- cat, for makedist.midori |
|
32 |
- cp, for x86-mingw32-opensuse and makedist.midori |
|
33 |
- cpio, for x86-mingw32-opensuse |
|
34 |
- echo, for x86-mingw32-opensuse and makedist.midori |
|
35 |
- find, for makedist.midori |
|
36 |
- git, to get the development sources |
|
37 |
- grep, for makedist.midori |
|
38 |
- gunzip, for x86-mingw32-opensuse |
|
39 |
- head, for x86-mingw32-opensuse |
|
40 |
- ls, for makedist.midori |
|
41 |
- mkdir, for x86-mingw32-opensuse and makedist.midori |
|
42 |
- mktemp, for makedist.midori |
|
43 |
- pwd, for makedist.midori |
|
44 |
- rm, for x86-mingw32-opensuse and makedist.midori |
|
45 |
- rmdir, for makedist.midori |
|
46 |
- rpm2cpio, for x86-mingw32-opensuse |
|
47 |
- sed, for x86-mingw32-opensuse |
|
48 |
- sha1sum, for makedist.midori |
|
49 |
- sort, for x86-mingw32-opensuse and makedist.midori |
|
50 |
- strings, for makedist.midori |
|
51 |
- tar, to unpack the scripts |
|
52 |
- touch, for x86-mingw32-opensuse |
|
53 |
- uniq, for makedist.midori |
|
54 |
- wget, for x86-mingw32-opensuse |
|
55 |
- xmlgrep, for x86-mingw32-opensuse |
|
56 |
- zip, for makedist.midori |
|
57 |
||
58 |
||
59 |
PREPARATIONS |
|
60 |
||
61 |
Install all the packages needed by Midori and its dependencies. There are two |
|
62 |
ways to do this. Automatically install the dependencies from opensuse.org or |
|
63 |
manually install them. |
|
64 |
To automatically install the packages use the scripts and change configuration |
|
65 |
in header of install.sh file where needed. And run ./install.sh to install all |
|
66 |
necessary packages. |
|
67 |
This script can be also invoked with "update" argument ./install.sh update |
|
68 |
to update the installed packages to newer versions. |
|
69 |
To install the dependencies manually install the packages in packages.list. |
|
70 |
This are all the packages needed by Midori and its dependencies. |
|
71 |
||
72 |
Get the Midori sources. Either use git to get them or download a snapshot or a |
|
73 |
release. See http://git.xfce.org/apps/midori or |
|
74 |
http://archive.xfce.org/src/apps/midori/ |
|
75 |
||
76 |
||
77 |
BUILDING |
|
78 |
||
79 |
Read the instruction in the source tree. For cross compiling the script |
|
80 |
crossconfig.sh might help. |
|
81 |
||
82 |
||
83 |
DISTRIBUTION |
|
84 |
||
85 |
To create a Windows installer for Midori you need NSIS. See |
|
86 |
http://nsis.sourceforge.net/Main_Page |
|
87 |
Use the makedist.midori script to get all files needed for distribution. Add |
|
88 |
the version number as argument to makedist.midori to create a version number |
|
89 |
in the distribution package. eg. ./makedist.midori -0.3.3 |
|
90 |
To complete the installer unzip the file created by the makedist script. |
|
91 |
Compile midori-0.3.3.nsi with NSIS. |
|
92 |