Files
local_machine/scripts/games/gog/reset-ja3-crossover.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

18 lines
705 B
Bash
Executable File

#!/usr/bin/env bash
# Остановить JA3 / Wine (CrossOver bottle JA3-GOG) перед перезапуском.
set -euo pipefail
GOG_DIR="$(cd "$(dirname "$0")" && pwd)"
# shellcheck source=gog-process.sh
source "${GOG_DIR}/gog-process.sh"
bash "${GOG_DIR}/emergency-stop.sh" 2>/dev/null || gog_kill_all
pkill -f 'JA3\.exe' 2>/dev/null || true
pkill -f 'wineserver.*JA3-GOG' 2>/dev/null || true
CX="/Applications/CrossOver.app/Contents/SharedSupport/CrossOver"
if [[ -x "${CX}/bin/wine" ]]; then
"${CX}/bin/wine" --bottle JA3-GOG wineboot --kill 2>/dev/null || true
fi
sleep 2
pgrep -fl 'JA3\.exe|wineserver' 2>/dev/null | head -5 || echo "OK: процессы JA3/Wine остановлены"