summaryrefslogtreecommitdiff
path: root/nightly/buildwindows.sh
blob: 3cb9d6607adfe40c01ff5778c2934bf8fdef6919 (plain) (blame)
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
#!/bin/bash

dir=`pwd`

cd ..
export PATH=/usr/i586-mingw32msvc/bin:$PATH
CXXFLAGS="-Wall -g0 -O3" cmake -DCMAKE_TOOLCHAIN_FILE=./build/toolchain.nightly .
result=$?
if [ "$result" != 0 ]; then
    exit $result
fi

make -j5 2>build/make.log
result=$?
if [ "$result" != 0 ]; then
    exit $result
fi

cd ./packaging/windows
./make-translations.sh
result=$?
if [ "$result" != 0 ]; then
    exit $result
fi

makensis -DDLLDIR=$dir/../packaging/windows/libs/dll/ \
    -DPRODUCT_VERSION="nightly-$1" \
    -DEXESUFFIX=/src \
    -DUPX=true \
    setup.nsi

cp ../../nightly/setup_finish.bmp .
cp ../../nightly/setup_welcome.bmp .

makensis -DDLLDIR=$dir/../packaging/windows/libs/dll/ \
    -DPRODUCT_VERSION="nightly-$1" \
    -DEXESUFFIX=/src \
    -DUPX=true \
    evol.nsi