From 7c3596e099f05dcb7e5849701a7452489415f5c4 Mon Sep 17 00:00:00 2001
From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl>
Date: Fri, 7 Apr 2017 15:35:21 +0200
Subject: [PATCH] okej

---
 build.sh            | 5 -----
 build_as_vagrant.sh | 5 +++--
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/build.sh b/build.sh
index 44f1460..7550b74 100644
--- a/build.sh
+++ b/build.sh
@@ -12,11 +12,6 @@ apt-get install -y python-software-properties
 ## Mono
 apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
 echo "deb http://download.mono-project.com/repo/ubuntu precise main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
-## WineHQ
-# wget https://dl.winehq.org/wine-builds/Release.key
-# apt-key add Release.key
-# apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
-## update
 apt-get update
 
 # Install WINE things
diff --git a/build_as_vagrant.sh b/build_as_vagrant.sh
index 8ae230b..b43ad14 100644
--- a/build_as_vagrant.sh
+++ b/build_as_vagrant.sh
@@ -4,6 +4,7 @@ set -x
 
 export DISPLAY=:0.0
 export WINEPREFIX="/home/vagrant/.wine"
+export WINEARCH="win32"
 
 cd /home/vagrant
 
@@ -15,8 +16,8 @@ export DISPLAY=:0.0
 wine start.exe
 ln -s /vagrant /home/vagrant/.wine/drive_c/vagrant
 
-# Only now is it safe to install Mono
-sudo apt-get install winbind mono-complete
+# Only now is it safe to install Mono :/ it requires wine for setup
+sudo apt-get install -y winbind mono-complete
 
 # Install Tibbo tools
 mkdir -p "/home/vagrant/.wine/drive_c/Program Files/Tibbo"
-- 
GitLab