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