source: docker/msys/build.sh@ 977:68c0592b4915

python3
Last change on this file since 977:68c0592b4915 was 976:69bc5891e14d, checked in by István Váradi <ivaradi@…>, 6 years ago

Reworked Windows Docker image and MSYS building (re #347)

  • Property exe set to *
File size: 1.9 KB
Line 
1#!/bin/bash
2
3set -e -u
4
5echo "Building PyWin32"
6
7cd /build
8
9wget -O - https://github.com/mhammond/pywin32/archive/b224.tar.gz | gzip -dc | tar xf -
10cd pywin32-b224
11patch -p1 < ../pywin32git.patch
12patch -p1 < ../pywin32.patch
13python3 setup.py build
14python3 setup.py install
15
16echo "Building CEFPython"
17
18cd /build
19
20wget -O - http://opensource.spotify.com/cefbuilds/cef_binary_3.3359.1774.gd49d25f_windows32.tar.bz2 | bzip2 -dc | tar xf -
21cd cef_binary_3.3359.1774.gd49d25f_windows32
22
23patch -p1 < ../cef_binary_3.3359.1774.gd49d25f_windows32.patch
24mv tests tests.orig
25
26mkdir build
27cd build
28/usr/bin/env PATH=/mingw32/bin:/usr/local/bin::/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0 cmake -G "MinGW Makefiles" ..
29cd libcef_dll_wrapper
30mingw32-make
31
32cd /build
33
34wget -O - https://github.com/cztomczak/cefpython/archive/v66.0.tar.gz | gzip -dc | tar xf -
35cd cefpython-66.0
36
37patch -p1 < ../cefpython-66.0.patch
38
39mkdir -p build
40cd build
41
42wget https://github.com/cztomczak/cefpython/releases/download/v66-upstream/cef66_3.3359.1774.gd49d25f_win32.zip
43unzip cef66_3.3359.1774.gd49d25f_win32.zip
44rm cef66_3.3359.1774.gd49d25f_win32.zip
45
46cp /build/cef_binary_3.3359.1774.gd49d25f_windows32/build/libcef_dll_wrapper/libcef_dll_wrapper.a cef66_3.3359.1774.gd49d25f_win32/lib
47
48pip3 install -r ../tools/requirements.txt
49
50python3 ../tools/build.py --no-run-tests --no-run-examples 66.0 || true
51python3 ../tools/build.py --no-run-tests --no-run-examples 66.0
52
53echo "Building Py2EXE"
54
55cd /build
56
57wget -O - https://github.com/albertosottile/py2exe/archive/v0.9.3.0.tar.gz | gzip -dc | tar xf -
58cd py2exe-0.9.3.0
59patch -p1 < ../py2exe.patch
60python3 setup.py build
61python3 setup.py install
62
63echo "Archiving msys64 directory"
64cd /c
65tar czf - msys64 | ssh -i /c/msys64/build/id_rsa -o StrictHostKeyChecking=no ivaradi@mises.varadiistvan.hu mlx/www/update/msys64.sh
Note: See TracBrowser for help on using the repository browser.