source: docker/context/setup.sh@ 920:42b14124051b

version_0.39_maint
Last change on this file since 920:42b14124051b was 916:4f738ffc3596, checked in by István Váradi <ivaradi@…>, 6 years ago

Support for building for Windows using Wine

  • Property exe set to *
File size: 1.3 KB
Line 
1#!/bin/bash
2
3set -e -u
4
5cdrive="${HOME}/.wine/drive_c"
6ctmpdir="${cdrive}/tmp"
7cpythondir="${cdrive}/Python27"
8cwinsysdir="${cdrive}/windows/system32"
9
10if test -f "${cpythondir}/python.exe"; then
11 echo "Image already configured, not doing anything!"
12 exit 1
13fi
14
15echo "Preparing image to be able to build MAVA Logger X for Windows"
16echo
17
18echo "Downloading and extracting the extra packages..."
19
20wget -O - mlx.varadiistvan.hu/update/winepkgs.tar | tar xf -
21
22echo
23echo "Installing extra packages..."
24
25export WINEARCH=win32
26
27echo "exit" | wine cmd
28wine msiexec /i python-2.7.2.msi
29wine msiexec /i cefpython3-31.2.py2.7-win32.msi
30wine msiexec /i pygtk-all-in-one-2.24.1.win32-py2.7.msi
31wine msiexec /i pyuipc-0.4.win32-py2.7.msi
32wine msiexec /i xplra-0.2.win32.msi
33
34wine pywin32-217.win32-py2.7.exe
35wine py2exe-0.6.9.win32-py2.7.exe
36wine nsis-2.46-setup.exe
37
38mkdir "${ctmpdir}"
39cp chromedriver.exe "${ctmpdir}"
40
41tar xzf Python27.extra.tar.gz -C "${cpythondir}"
42
43touch -d "2015-02-22 14:50:07" "${cpythondir}/Lib/site-packages/win32/lib/win32con.py"
44touch -d "2015-02-22 14:50:07" "${cpythondir}/Lib/site-packages/win32/lib/winerror.py"
45
46cp python27.dll WINHTTP.dll "${cwinsysdir}"
47
48echo
49echo "Removing extra packages..."
50rm -f *.msi *.exe Python27.extra.tar.gz python27.dll WINHTTP.dll
51echo
52echo "Done."
Note: See TracBrowser for help on using the repository browser.