2018-10-25 21:55:20 +03:00
|
|
|
#!/bin/sh
|
2018-12-05 20:21:36 +03:00
|
|
|
|
2018-11-19 22:08:55 +03:00
|
|
|
#set up steam runtimes. remove these lines if building without the runtime
|
2019-06-05 19:23:59 +03:00
|
|
|
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
|
2019-07-29 18:36:19 +03:00
|
|
|
(cd steam-runtime && ./build-runtime.py --verbose --output=./runtime/)
|
2019-06-05 19:23:59 +03:00
|
|
|
fi
|
2019-06-24 17:32:26 +03:00
|
|
|
|
2019-10-07 22:14:58 +03:00
|
|
|
#build and install recent mingw-w64
|
|
|
|
if [ ! -e "$HOME/.local/bin/x86_64-w64-mingw32-gcc" ]; then
|
|
|
|
mkdir -p $HOME/mingw-w64-build/
|
|
|
|
(cd $HOME/mingw-w64-build && $HOME/proton/build-mingw-w64.sh "$HOME/.local/")
|
|
|
|
#clean up the build tree, this takes up like 6GB
|
|
|
|
rm -rf $HOME/mingw-w64-build/
|
2019-06-24 17:32:26 +03:00
|
|
|
fi
|