From 417831eecaaac24e7fc943f5fb867736a1834f3f Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Wed, 23 May 2018 12:36:50 -0500 Subject: [PATCH] Build the default prefix on the build machine --- README.md | 4 ++++ build_proton.sh | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index 35927737..6a7a575e 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,10 @@ Next, you need to repeat the process, but for amd64: 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. + Finally, change your directory back to proton, and run: cd ../proton diff --git a/build_proton.sh b/build_proton.sh index 0f368300..f209f412 100755 --- a/build_proton.sh +++ b/build_proton.sh @@ -497,6 +497,11 @@ if [ "$PACKAGE" = true ]; then echo "Packaging..." cd "$TOP" + #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 + #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