#!/bin/bash # The relative paths in this file only become valid at runtime. # shellcheck disable=SC1091 set -e set -o xtrace export DEBIAN_FRONTEND=noninteractive # Ephemeral packages (installed for this script and removed again at the end) STABLE_EPHEMERAL=" \ ccache \ cmake \ g++ \ g++-mingw-w64-i686-posix \ g++-mingw-w64-x86-64-posix \ glslang-tools \ libexpat1-dev \ gnupg2 \ libgbm-dev \ libgles2-mesa-dev \ liblz4-dev \ libpciaccess-dev \ libudev-dev \ libvulkan-dev \ libwaffle-dev \ libx11-xcb-dev \ libxcb-ewmh-dev \ libxcb-keysyms1-dev \ libxkbcommon-dev \ libxrandr-dev \ libxrender-dev \ libzstd-dev \ meson \ mingw-w64-i686-dev \ mingw-w64-tools \ mingw-w64-x86-64-dev \ p7zip \ patch \ pkg-config \ python3-dev \ python3-distutils \ python3-pip \ python3-setuptools \ python3-wheel \ software-properties-common \ wget \ wine64-tools \ xz-utils \ " apt-get install -y --no-remove \ $STABLE_EPHEMERAL \ libxcb-shm0 \ pciutils \ python3-lxml \ python3-simplejson \ xinit \ xserver-xorg-video-amdgpu \ xserver-xorg-video-ati # We need multiarch for Wine dpkg --add-architecture i386 # Install a more recent version of Wine than exists in Debian. apt-key add .gitlab-ci/container/debian/winehq.gpg.key apt-add-repository https://dl.winehq.org/wine-builds/debian/ apt update -qyy # Needed for Valve's tracing jobs to collect information about the graphics # hardware on the test devices. pip3 install gfxinfo-mupuf==0.0.9 apt install -y --no-remove --install-recommends winehq-stable function setup_wine() { export WINEDEBUG="-all" export WINEPREFIX="$1" # We don't want crash dialogs cat >crashdialog.reg <