mirror of
https://github.com/ValveSoftware/Proton.git
synced 2024-12-27 23:25:50 +03:00
Vagrantfile: Allow VMs to be provisioned multiple times
This commit is contained in:
parent
8770e311d6
commit
70c8aef273
4
Vagrantfile
vendored
4
Vagrantfile
vendored
@ -90,8 +90,9 @@ Vagrant.configure(2) do |config|
|
||||
#allow vagrant user to run docker
|
||||
adduser vagrant docker
|
||||
|
||||
if ! schroot -i -c dxvk_crosscc >/dev/null 2>&1; then
|
||||
#download build of recent mingw-w64 with dwarf2 exceptions enabled
|
||||
wget -O /root/dxvk_crosscc.tar.xz 'http://repo.steampowered.com/proton_mingw/proton_mingw-9.1-1.tar.xz'
|
||||
wget --progress=dot -O /root/dxvk_crosscc.tar.xz 'http://repo.steampowered.com/proton_mingw/proton_mingw-9.1-1.tar.xz'
|
||||
unxz -T0 /root/dxvk_crosscc.tar.xz
|
||||
mkdir -p /srv/chroot/dxvk_crosscc/
|
||||
tar -xf /root/dxvk_crosscc.tar -C /srv/chroot/dxvk_crosscc/
|
||||
@ -106,6 +107,7 @@ users=vagrant
|
||||
personality=linux
|
||||
preserve-environment=true
|
||||
EOF
|
||||
fi
|
||||
SHELL
|
||||
|
||||
config.vm.provision "shell", privileged: "true", inline: <<-SHELL
|
||||
|
@ -1,7 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
#set up steam runtimes. remove these lines if building without the runtime
|
||||
git clone https://github.com/ValveSoftware/steam-runtime.git
|
||||
./steam-runtime/setup_docker.sh amd64 --extra-bootstrap=/home/vagrant/proton/steamrt-bootstrap.sh steam-proton-dev
|
||||
./steam-runtime/setup_docker.sh i386 --extra-bootstrap=/home/vagrant/proton/steamrt-bootstrap.sh steam-proton-dev32
|
||||
(cd steam-runtime && ./build-runtime.py --output=./runtime/)
|
||||
if [ ! -e "$HOME/steam-runtime" ]; then
|
||||
git clone https://github.com/ValveSoftware/steam-runtime.git
|
||||
./steam-runtime/setup_docker.sh amd64 --extra-bootstrap=/home/vagrant/proton/steamrt-bootstrap.sh steam-proton-dev
|
||||
./steam-runtime/setup_docker.sh i386 --extra-bootstrap=/home/vagrant/proton/steamrt-bootstrap.sh steam-proton-dev32
|
||||
(cd steam-runtime && ./build-runtime.py --output=./runtime/)
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user