- installing lib_bash_wine Scripts and travis.yml file to install wine on travis
- install python on wine
- install Git on Wine 32 Bit or 64 Bit
- Powershell Core on Wine 32 Bit or 64 Bit
- run pytest and codecov on python on wine
- travis .yml to install Windows 3.7 builds
- travis .yml to install pypy 3.7 builds
- travis .yml to install OsX Python 3.7 builds
Tested under Linux, OsX, Windows and Wine, automatic daily builds and monitoring
- Installation and Prerequisites
- Install WINE
- Set up Wine Machine
- Install latest Python 3.7 on WINE
- Install GIT on WINE
- Install Powershell Core on WINE
- Running Commands on Wine
- Acknowledgements
- Contribute
- Report Issues
- Pull Request
- Code of Conduct
- License
- Changelog
- Prerequisites when You install on Your local Machine:
- Ubuntu xenial, bionic, disco or newer
- xvfb Service installed and running for headless machines
# local installation
sudo apt-get install git
sudo git clone https://github.com/bitranox/lib_bash_wine.git /usr/local/lib_bash_wine
sudo chmod -R 0755 /usr/local/lib_bash_wine
sudo chmod -R +x /usr/local/lib_bash_wine/*.sh
sudo /usr/local/lib_bash_wine/install_or_update.sh
If You want to install on Travis, just copy the travis.yml Your project directory, there should be only minimal adoption needed to the yml file.
You might delete the codecov related entries if You dont have an account on codecov.
# set the wine_version from Your command prompt
export wine_release="stable" # for wine release stable, somehow old
export wine_release="devel" # for wine release development, recommended
export wine_release="staging" # for wine release staging, the newest version, might be unstable
# next step will install wine - after that You will be able to set up 32 and 64 Bit Wine Machines
/usr/local/lib_bash_wine/001_000_install_wine.sh
you can set up as many Wine Machines as You want, with different settings, by selecting different WINEPREFIX
The WINEPREFIX is the path to the Wine machine, defaults to /home/<user>/.wine
#############################################
# Install Wine Machine 1 (32 Bit)
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# set Architecture to 32 Bit
export WINEARCH="win32"
# set winetricks_windows_version to report, defaults to "win10"
# possible values: win10, win2k, win2k3, win2k8, win31, win7, win8, win81, win95, win98, winxp
export winetricks_windows_version="win10"
# next step is to set up the wine machine
/usr/local/lib_bash_wine/002_000_install_wine_machine.sh
#############################################
# Install Wine Machine 2 (64 Bit)
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# set Architecture to 64 Bit
export WINEARCH="win64"
# set winetricks_windows_version to report, defaults to "win10"
# possible values: win10, win2k, win2k3, win2k8, win31, win7, win8, win81, win95, win98, winxp
export winetricks_windows_version="win10"
# next step is to set up the wine machine
/usr/local/lib_bash_wine/002_000_install_wine_machine.sh
you should install a 32 Bit Python on a 32 Bit Wine Machine, and 64 Bit Python on a 64 Bit Wine Machine. Other combinations will probably not work. The path setting in the registry of the wine machine will be adapted to point to the python 3.7 directories You CAN install different Python Versions same WINE Machine, although the paths will point to the version installed at last.
#############################################
# install python 3.7 32 Bit Version on Machine 1
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# set Architecture to 32 Bit
export WINEARCH="win32"
# next step is to install python 3.7 on the Wine Machine
/usr/local/lib_bash_wine/003_000_install_win_python3_preinstalled.sh
#############################################
# install python 3.7 64 Bit Version on Machine 2
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# set Architecture to 64 Bit
export WINEARCH="win64"
# next step is to install python 3.7 on the Wine Machine
/usr/local/lib_bash_wine/003_000_install_wine_python3_preinstalled.sh
#############################################
# install Git 32 Bit Version on Machine 1
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# set Architecture to 32 Bit
export WINEARCH="win32"
# next step is to install Git 32 Bit on the Wine Machine
/usr/local/lib_bash_wine/004_000_install_wine_git_portable.sh
#############################################
# install Git 64 Bit Version on Machine 2
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# set Architecture to 64 Bit
export WINEARCH="win64"
# next step is to install Git 64 Bit on the Wine Machine
/usr/local/lib_bash_wine/004_000_install_wine_git_portable.sh
#############################################
# install Powershell Core 32 Bit Version on Machine 1
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# set Architecture to 32 Bit
export WINEARCH="win32"
# next step is to install Powershell Core 32 Bit on the Wine Machine
/usr/local/lib_bash_wine/005_000_install_wine_powershell_core.sh
#############################################
# install Powershell Core 64 Bit Version on Machine 2
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# set Architecture to 64 Bit
export WINEARCH="win64"
# next step is to install Powershell Core 64 Bit on the Wine Machine
/usr/local/lib_bash_wine/005_000_install_wine_powershell_core.sh
#############################################
# Running Commands on Machine 1
#############################################
# set Wine Prefix for Machine 1 (32 Bit)
export WINEPREFIX=${HOME}/wine/wine32_machine_01
# test if it is working
wine pip install --upgrade pip
# alternatively a one-liner, handy for Icons:
WINEPREFIX=${HOME}/wine/wine32_machine_01 wine pip install --upgrade pip
# opening wineconsole
wineconsole
#############################################
# Running Commands on Machine 2
#############################################
# set Wine Prefix for Machine 2 (64 Bit)
export WINEPREFIX=${HOME}/wine/wine64_machine_02
# test if it is working
wine pip install --upgrade pip
# alternatively a one-liner, handy for Icons:
WINEPREFIX=${HOME}/wine/wine64_machine_02 wine pip install --upgrade pip
# opening wineconsole
wineconsole
- special thanks to "uncle bob" Robert C. Martin, especially for his books on "clean code" and "clean architecture"
I would love for you to fork and send me pull request for this project. - please Contribute
This software is licensed under the MIT license
2019-07-13: drop python3.5 support
2019-07-13: drop python2 support
2019-04-12: Initial public release