From a38fb17c7ae25563a320d3ea01b52bcdc21a20d8 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Wed, 23 May 2018 15:05:36 -0500 Subject: [PATCH] build_proton: Build default prefix against the Steam runtime --- README.md | 1 + build_proton.sh | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fec18878..6067373d 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,7 @@ And then repeat all of the commands to install gcc and Wine dependencies again. In addition, your host system will need to be able to run Wine in both 64- and 32-bit modes in order to create the default prefix. It is recommended to install Wine from your package manager, including its optional dependencies. +You will also need the Steam runtime located at $HOME/steam-runtime. Finally, change your directory back to proton, and run: diff --git a/build_proton.sh b/build_proton.sh index f209f412..9b0c188a 100755 --- a/build_proton.sh +++ b/build_proton.sh @@ -499,8 +499,13 @@ if [ "$PACKAGE" = true ]; then #create default prefix rm -rf "$TOP"/build/dist/share/default_pfx/ - WINEPREFIX="$TOP"/build/dist/share/default_pfx/ ./build/dist/bin/wine64 wineboot - WINEPREFIX="$TOP"/build/dist/share/default_pfx/ ./build/dist/bin/wineserver -w + if [ "$PLATFORM" != "Darwin" ]; then + RUNTIME_RUNSH="$HOME"/steam-runtime/run.sh + else + RUNTIME_RUNSH="" + fi + WINEPREFIX="$TOP"/build/dist/share/default_pfx/ "$RUNTIME_RUNSH" ./build/dist/bin/wine64 wineboot + WINEPREFIX="$TOP"/build/dist/share/default_pfx/ "$RUNTIME_RUNSH" ./build/dist/bin/wineserver -w #the difference between -1 and -9 is about 20 MB, so prioritize quick startup over file size tar -C build/dist -c . | gzip -c -1 > dist/proton_dist.tar.gz