Expand local_machine docs and automation for connectivity, games, and ops.

Add proxy/VPN/telegram launchd and emergency runbooks; reorganize apps docs;
document JA3 CrossOver runbook and Wine troubleshooting; add GOG/HoMM game
scripts, disk cleanup guides, and gitea push-via-proxy helper. Ignore temp/.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ahauimix
2026-06-01 08:12:19 +03:00
parent a39ef89125
commit 1938b7c743
135 changed files with 9933 additions and 388 deletions

View File

@@ -0,0 +1,35 @@
#!/usr/bin/env bash
# JA3 на Mac (Whisky без GPTK): рендер через D3D11 + DXVK, не D3D12 (wine d3d12 → «Failed creating render device»).
set -euo pipefail
GOG_DIR="$(cd "$(dirname "$0")" && pwd)"
# shellcheck source=config.sh
source "${GOG_DIR}/config.sh"
WINE_USER="${WINE_USER:-eternal}"
LS="${BOTTLE_DIR}/drive_c/users/${WINE_USER}/AppData/Roaming/Jagged Alliance 3/LocalStorage.lua"
if [[ ! -f "${LS}" ]]; then
mkdir -p "$(dirname "${LS}")"
cat >"${LS}" <<'EOF'
return {
Options = {
GraphicsApi = "d3d11",
VideoPreset = "Low",
},
}
EOF
echo "OK: создан ${LS} (GraphicsApi=d3d11)"
exit 0
fi
if grep -q 'GraphicsApi = "d3d11"' "${LS}"; then
echo "OK: GraphicsApi уже d3d11"
exit 0
fi
perl -i -pe '
if (/^\t\tGraphicsApi = /) {
$_ = "\t\tGraphicsApi = \"d3d11\",\n";
}
' "${LS}"
echo "OK: ${LS} → GraphicsApi=d3d11 (было d3d12 или пусто)"