From ee74e78c185ce7a35fd24721f072585b0c5ab214 Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Thu, 18 Jan 2018 10:20:43 -0600 Subject: [PATCH] Build wine --- .gitignore | 2 ++ build_proton.sh | 35 +++++++++++++++++++++++++++++++++++ toolmanifest.vdf | 4 ++++ 3 files changed, 41 insertions(+) create mode 100644 .gitignore create mode 100755 build_proton.sh create mode 100644 toolmanifest.vdf diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..c0f64a83 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist/ +build/ diff --git a/build_proton.sh b/build_proton.sh new file mode 100755 index 00000000..b7b8daf9 --- /dev/null +++ b/build_proton.sh @@ -0,0 +1,35 @@ +#!/bin/bash + +set -e + +RUNTIME_PATH="$PWD/../../runtime/steam-runtime-both/" + +#./wine/ <-- wine source +#./build/ <-- built files +#./dist/ <-- proton build, ready to distribute + +mkdir -p dist/ build/wine.win32 build/dist.win32 build/wine.win64 + +DST_DIR="$PWD/dist" + +cp -a toolmanifest.vdf dist/ + +cd build/wine.win64 +CC="ccache gcc" "$RUNTIME_PATH/shell-amd64.sh" ../../wine/configure --enable-win64 --disable-tests --prefix="$DST_DIR" +"$RUNTIME_PATH/shell-amd64.sh" make +"$RUNTIME_PATH/shell-amd64.sh" make install-lib + +cd ../wine.win32 +CC="ccache gcc" "$RUNTIME_PATH/shell-i386.sh" ../../wine/configure --disable-tests --prefix="$PWD/../dist.win32/" +"$RUNTIME_PATH/shell-i386.sh" make +"$RUNTIME_PATH/shell-i386.sh" make install-lib + +#install 32-bit stuff manually, see +# https://wiki.winehq.org/Packaging#WoW64_Workarounds +cd ../dist.win32/ +cp -a lib "$DST_DIR"/ +cp -a bin/wine "$DST_DIR"/bin/ +cp -a bin/wine-preloader "$DST_DIR"/bin/ +cp -a bin/wineserver "$DST_DIR"/bin/wineserver32 + +echo "Proton ready in dist/" diff --git a/toolmanifest.vdf b/toolmanifest.vdf new file mode 100644 index 00000000..149163c9 --- /dev/null +++ b/toolmanifest.vdf @@ -0,0 +1,4 @@ +"manifest" +{ + "commandline" "/bin/proton" +}