Skip to content

Tools: add cron script to refresh mwgg_igdb (ao) and upgrade deps#50

Closed
lallaria wants to merge 1 commit into
gui-changesfrom
claude/relaxed-bartik-d3036b
Closed

Tools: add cron script to refresh mwgg_igdb (ao) and upgrade deps#50
lallaria wants to merge 1 commit into
gui-changesfrom
claude/relaxed-bartik-d3036b

Conversation

@lallaria

Copy link
Copy Markdown
Owner

What is this fixing or adding?

Adds tools/cron_update_mwgg_igdb_ao.sh, a small cron-friendly script that:

  1. Force-reinstalls mwgg_igdb from game_index/ao into a configured mwgg_venv (uv pip install --force-reinstall --no-deps --upgrade).
  2. Verifies the import (from mwgg_igdb import GAMES_DATA, GameIndex) so a broken install surfaces in cron mail instead of failing silently at next launch.
  3. Upgrades project requirements with uv pip install --upgrade --reinstall -r requirements.txt, which pulls in the latest compatible versions for the listed packages and their transitive deps. --reinstall keeps stale pins from prior partial runs from lingering.

Config is via env vars at the top of the script (MWGG_REPO_ROOT, MWGG_VENV, MWGG_REQUIREMENTS); the header comment includes a sample crontab line.

Note: nothing else in the repo currently installs the ao variant — build_exe.py reinstalls sixteen. If a build runs after this cron, it will overwrite the ao install. Worth keeping in mind when scheduling.

How was this tested?

Static review only — script is shell-only and has not been executed against a live venv. Manual smoke test on a target host is recommended before scheduling: run with MWGG_VENV pointed at the real venv and confirm all three steps succeed.

If this makes graphical changes, please attach screenshots.

N/A — tooling only.

Adds tools/cron_update_mwgg_igdb_ao.sh for scheduled re-installation of
the ao game-index variant followed by a uv pip upgrade of all project
requirements (transitive deps included). Force-reinstalls game_index/ao
with --no-deps, runs an import smoke test, then upgrades requirements.txt
with --upgrade --reinstall so stale transitive pins get refreshed.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@lallaria lallaria closed this May 28, 2026
@lallaria lallaria deleted the claude/relaxed-bartik-d3036b branch May 28, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant