-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.txt
71 lines (63 loc) · 2.13 KB
/
install.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
How to Install YASW
-------------------
Currently, YASW has no install procedure. You can test YASW by compiling it
and running it directly from the compilation directory.
YASW is developped under Debian GNU/Linux.
It is cross-compiled for windows using http://mxe.cc (see How to release for details)
YASW ought to run on other Qt-Platforms. If you want to contribute to / port / compile YASW on other platforms, your help
is welcome!
Complile YASW
-------------
Prerequisite to build YASW is the Qt5-Plateform.
$ cd src
$ qmake
$ make
Alternative: install QT Creator, open yasw.pro and click "run".
Run YASW
--------
After compiling YASW, just go into src and run "yasw", on linux:
./yasw
How to Release
--------------
#######################
# Prepare Release
#######################
- edit changelog
- update version in constants.h
- make distclean working repository, rebuild in release, extensive test
- cross-compile to windows, small test
- insert images
- export to pdf
#######################
# Build source tarball
#######################
# Tag the git repository
VERSION=0.6
git tag -a yasw_${VERSION} -m "YASW version ${VERSION}"
# build the tarball (note: it contains files like .gitignore...)
git archive --prefix=yasw_${VERSION}/ yasw_${VERSION} | gzip > ../yasw_${VERSION}.tgz
# test archive (tar xvzf, qmake, make, ./yasw, play around)
# publish the tag on github:
git push --tags
#######################
# Build windows version (cross compile under linux)
#######################
# Preparation: follow steps 1; 3; 4; 5c on http://mxe.cc/#tutorial :
git clone -b stable https://github.com/mxe/mxe.git
cd mxe
make qtsvg
export PATH=/where MXE is installed/usr/bin:$PATH
# Cross-compile YASW:
cd <path to yasw root folder>
mkdir windows-build
cd windows-build
/where MXE is installed/usr/i686-pc-mingw32/qt5/bin/qmake ../src/yasw.pro CONFIG+=static
make
# build archive
VERSION=0.6
mkdir yasw_${VERSION}_Windows
cp release/yasw.exe yasw_${VERSION}_Windows/
cp ../README yasw_${VERSION}_Windows/
cp ../changelog.txt yasw_${VERSION}_Windows/
cp ../documentation/gpl.txt yasw_${VERSION}_Windows/
zip -r yasw_${VERSION}_Windows.zip yasw_${VERSION}_Windows/