38 lines
1.1 KiB
Bash
38 lines
1.1 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"
|
|
|
|
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'
|