forked from madewokherd/wine-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
27 lines (22 loc) · 1.17 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrant file for setting up a build environment for Wine Mono.
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/focal64"
config.vm.provider "virtualbox" do |v|
v.cpus = `nproc`.to_i
# meminfo shows KB and we need to convert to MB
v.memory = `grep 'MemTotal' /proc/meminfo | sed -e 's/MemTotal://' -e 's/ kB//'`.to_i / 1024 / 4
end
# Use virtualbox shared folders only for build output.
config.vm.synced_folder ".", "/vagrant", type: "rsync", rsync__exclude: [".git/", "/build-*/", "/image/", "/tests-*/", "/winemono.msi", "/output/"], rsync__args: ["--verbose", "--archive", "-z", "--links", "--update"]
config.vm.synced_folder ".", "/vagrant/output", create: "true"
config.vm.provision "shell", privileged: "true", inline: <<-SHELL
dpkg --add-architecture i386
echo '* libraries/restart-without-asking boolean true' | sudo debconf-set-selections
apt-get update
# --no-install-recommends to avoid corefonts which needs eula
apt-get install -y --no-install-recommends wine-stable
apt-get install -y mono-mcs autoconf libtool gettext python libtool-bin cmake dos2unix libgdiplus zip g++
SHELL
end