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