Files
magges 641608ad26
build-elsword-ge / build (push) Has been cancelled
fix: use Steam Runtime Sniper for Proton 10
2026-07-19 22:03:53 +02:00

45 lines
1.3 KiB
Bash

#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
source "$REPO_ROOT/scripts/common.sh"
if [[ "$ELSWORD_GE_VERSION" != "10-34" || "$PROTON_TAG" != "GE-Proton10-34" ]]; then
printf 'expected GE-Proton10-34 default, got version=%s tag=%s\n' "$ELSWORD_GE_VERSION" "$PROTON_TAG" >&2
exit 1
fi
printf 'Proton base is pinned to %s\n' "$PROTON_TAG"
if [[ "$RUNTIME_APPID" != "1628350" ]]; then
printf 'expected Steam Runtime Sniper appid 1628350, got %s\n' "$RUNTIME_APPID" >&2
exit 1
fi
printf 'Proton 10 uses Steam Runtime Sniper\n'
expected_tag="latest"
actual_tag="$(dxvk_tag_for_variant stable)"
if [[ "$actual_tag" != "$expected_tag" ]]; then
printf 'expected stable DXVK tag %s, got %s\n' "$expected_tag" "$actual_tag" >&2
exit 1
fi
printf 'stable DXVK tag resolves dynamically as %s\n' "$actual_tag"
flake_file="$REPO_ROOT/flake.nix"
if ! rg -Fq 'MINGW_PTHREAD_ROOT = mingwPthreadRoot;' "$flake_file"; then
printf 'Nix shell must provide the MinGW pthread compatibility directory\n' >&2
exit 1
fi
if ! rg -Fq '${MINGW_PTHREAD_ROOT:-}/$arch_dir/$dll' "$REPO_ROOT/scripts/common.sh"; then
printf 'runtime dependency lookup must use the Nix shell MinGW directory\n' >&2
exit 1
fi
printf 'Nix shell provides the MinGW pthread compatibility directory\n'