python3
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | set -e -u
|
---|
4 |
|
---|
5 | cdrive="${HOME}/.wine/drive_c"
|
---|
6 | cpythondir="${cdrive}/msys64/mingw32"
|
---|
7 |
|
---|
8 | if test -f "${cpythondir}/bin/python3.exe"; then
|
---|
9 | echo "Image already configured, not doing anything!"
|
---|
10 | exit 1
|
---|
11 | fi
|
---|
12 |
|
---|
13 | echo "Preparing image to be able to build MAVA Logger X for Windows"
|
---|
14 | echo
|
---|
15 |
|
---|
16 | export WINEARCH=win32
|
---|
17 |
|
---|
18 | echo "exit" | wine cmd
|
---|
19 |
|
---|
20 | echo "Downloading and extracting the extra packages..."
|
---|
21 |
|
---|
22 | wget -O - mlx.varadiistvan.hu/update/msys64.tar.gz | tar xzf - -C "${cdrive}"
|
---|
23 | wget -O - mlx.varadiistvan.hu/update/winepkgs.tar | tar xf - nsis-2.46-setup.exe pyuipc-cpython-37m.dll xplra.py
|
---|
24 |
|
---|
25 | mv pyuipc-cpython-37m.dll xplra.py /root/.wine/drive_c/msys64/mingw32/lib/python3.7/site-packages
|
---|
26 |
|
---|
27 | echo
|
---|
28 | echo "Installing extra packages..."
|
---|
29 |
|
---|
30 | wine nsis-2.46-setup.exe
|
---|
31 |
|
---|
32 | echo
|
---|
33 | echo "Removing extra packages..."
|
---|
34 | rm -f *.exe
|
---|
35 | echo
|
---|
36 | echo "Done."
|
---|
Note:
See
TracBrowser
for help on using the repository browser.