Files
local_machine/scripts/games/gog/register-ja3-registry.sh
ahauimix 1938b7c743 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>
2026-06-01 08:12:19 +03:00

28 lines
1.1 KiB
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
# Реестр GOG для JA3 (innoextract не запускает Inno-скрипт с ключами).
set -euo pipefail
GOG_DIR="$(cd "$(dirname "$0")" && pwd)"
# shellcheck source=config.sh
source "${GOG_DIR}/config.sh"
GAME_ID='1556263729'
JA3_WIN='C:\GOG Games\Jagged Alliance 3'
JA3_EXE="${JA3_WIN}\\JA3.exe"
KEY="HKLM\\Software\\WOW6432Node\\GOG.com\\Games\\${GAME_ID}"
gog_wine_check
export_wine_env_gog
"${WINE64}" reg add "${KEY}" /v gameName /t REG_SZ /d 'Jagged Alliance 3' /f
"${WINE64}" reg add "${KEY}" /v exe /t REG_SZ /d 'JA3.exe' /f
"${WINE64}" reg add "${KEY}" /v path /t REG_SZ /d "${JA3_WIN}\\" /f
"${WINE64}" reg add "${KEY}" /v startMenu /t REG_SZ /d 'Jagged Alliance 3\' /f
"${WINE64}" reg add "${KEY}" /v version /t REG_SZ /d '1.5.2' /f
"${WINE64}" reg add "${KEY}" /v language /t REG_SZ /d 'English' /f
"${WINE64}" reg add "${KEY}" /v launchParam /t REG_SZ /d '' /f
"${WINE64}" reg add 'HKLM\Software\WOW6432Node\GOG.com\DefaultPackPath' /ve /t REG_SZ /d 'C:\GOG Games' /f 2>/dev/null || true
bash "${GOG_DIR}/register-galaxy-registry.sh" 2>/dev/null || true
echo "OK: GOG registry → ${KEY}"