python3
Rev | Line | |
---|
[916] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | set -e -u
|
---|
| 4 |
|
---|
| 5 | cdrive="${HOME}/.wine/drive_c"
|
---|
[939] | 6 | cpythondir="${cdrive}/msys64/mingw32"
|
---|
[916] | 7 |
|
---|
[939] | 8 | if test -f "${cpythondir}/bin/python3.exe"; then
|
---|
[916] | 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 |
|
---|
[939] | 16 | export WINEARCH=win32
|
---|
| 17 |
|
---|
| 18 | echo "exit" | wine cmd
|
---|
| 19 |
|
---|
[916] | 20 | echo "Downloading and extracting the extra packages..."
|
---|
| 21 |
|
---|
[939] | 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
|
---|
[916] | 26 |
|
---|
| 27 | echo
|
---|
| 28 | echo "Installing extra packages..."
|
---|
| 29 |
|
---|
| 30 | wine nsis-2.46-setup.exe
|
---|
| 31 |
|
---|
| 32 | echo
|
---|
| 33 | echo "Removing extra packages..."
|
---|
[939] | 34 | rm -f *.exe
|
---|
[916] | 35 | echo
|
---|
| 36 | echo "Done."
|
---|
Note:
See
TracBrowser
for help on using the repository browser.