Skip to content
Snippets Groups Projects
Commit b8399397 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

wine box!

parent 9acee679
No related branches found
No related tags found
No related merge requests found
Pipeline #1116 passed with stage
in 0 seconds
# example
This is description of the box. It will be copied. Keep it short and single-line. Don't remove the line break before.
Version: 1.0
Write what this box consists of and how it behaves.
First four lines have a special meaning - dont move them around. Change only version number, not the word.
---
This section will be automatically replaced by `python make.py` with auto-generated
content of Vagrantfile that will refer to this box.
#!/bin/bash
# This will be executed during build process as root
# You can delete it if you want to.
# cd into a directory if you depend on a particular working directory.
#!/bin/bash
# This will be executed during build process as user Vagrant
# You can delete it if you want to.
# cd into a directory if you depend on a particular working directory.
# wine
Debian with a 32-bit WINE
Version: 1.0
---
Usage in Vagrantfile:
```
config.vm.box = "henrietta/wine"
config.vm.box_url = "http://dev.dms-serwis.com.pl/vagrant/wine.box"
```
#!/bin/bash
# Install WINE
dpkg --add-architecture i386
apt-get update
apt-get install -y wget xvfb wine winetricks unzip
# Load framebuffer
sudo -u vagrant Xvfb :0 -screen 0 1024x768x16 &
sudo -u vagrant wine start.exe
sudo -u vagrant "ln -s /vagrant /home/vagrant/.wine/drive_c/vagrant"
# Start framebuffer on VM start
echo "sudo -u vagrant Xvfb :0 -screen 0 1024x768x16 &" >> /etc/rc.local
# Install Tibbo tools
sudo -u vagrant wget http://dev.dms-serwis.com.pl/misc/tide-tibbo-lite-5.1.3-win32.zip -O /tmp/tibbo.zip
sudo -u vagrant mkdir "/home/vagrant/.wine/drive_c/Program Files/Tibbo"
sudo -u vagrant unzip /tmp/tibbo.zip -d "/home/vagrant/.wine/drive_c/Program Files/Tibbo"
# WINE extensions
sudo -u vagrant "export DISPLAY=:0.0; winetricks corefonts vcrun6"
# Install command
echo """#!/bin/bash
rm -rf ~/.wine/drive_c/vagrant || true
mkdir ~/.wine/drive_c/vagrant
cp -rf /vagrant/* ~/.wine/drive_c/vagrant/
env DISPLAY=:0.0
cd ~/.wine/drive_c/vagrant
wine "C:\Program Files\Tibbo\TIDE\Bin\tmake.exe" $1 -b "C:\Program Files\Tibbo\TIDE\Bin" -p "C:\Program Files\Tibbo\TIDE\Platforms"
cp -f /.wine/drive_c/vagrant/*.tpc /vagrant
rm -rf ~/.wine/drive_c/vagrant || true
""" > /usr/sbin/tibbo_build
chmod ugo+rx /usr/sbin/tibbo_build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment