https://github.com/thetechstech/wine
Cross compile on Linux for Windows
https://github.com/thetechstech/wine
Last synced: 3 months ago
JSON representation
Cross compile on Linux for Windows
- Host: GitHub
- URL: https://github.com/thetechstech/wine
- Owner: TheTechsTech
- License: gpl-2.0
- Created: 2018-01-14T19:27:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-23T19:18:33.000Z (over 5 years ago)
- Last Synced: 2025-06-02T19:54:13.562Z (about 1 year ago)
- Language: Python
- Size: 72.3 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Linux Wine on Docker
Wine 2.0.2 32bit and 64bit CentOs 7 image base on a script from https://www.systutorials.com/239913/install-32-bit-wine-1-8-centos-7/
## Cross compile on Linux for Windows
Using the ideas from http://sparkandshine.net/en/build-a-windows-executable-from-python-scripts-on-linux/
This container can automatically turn python scripts directly to windows executable by dropping *.py into a mounted watch folder, and *.exe will be in another mounted folder for the binary. This done by using by python script from https://github.com/joh/when-changed
For example howto on c++ and others see: http://ooo-imath.sourceforge.net/wiki/index.php/Cross-compiling_for_Windows
### Usage
To run it:
```
docker run --name wine \
-v py2watch:/opt/watch \
-v py2windows:/opt/windows \
-d technoexpress/wine
```
### Create an RPM image
You can create an Wine 2.0.3 RPM base version of an 32bit and 64bit for CentOs 7.
Running `make_wine_rpm.sh` will produce wine-2.0.2-1.x86_64.rpm in directory `/root/rpmbuild/RPMS/`
Use also can create an Windows Python RPM to cross compile on linux for windows by running `make_wine_profile_rpm.sh` will produce windows-python-2.7.14-1.x86_64.rpm in directory `/root/rpmbuild/RPMS/`
To retrieve run:
```
docker cp wine:/root/rpmbuild/RPMS/ /opt/rmpbuild
```