Skip to content

Conversation

@kshitijk4poor
Copy link

@kshitijk4poor kshitijk4poor commented Mar 18, 2025

Problem

Manual maintenance of Moodle version hashes is time-consuming and error-prone, requiring downloading, extracting, and hashing files for each new Moodle release.

Solution

Implemented an automated updater that:

  • Downloads Moodle releases (supports both .zip and .tgz)
  • Verifies version existence and file integrity
  • Extracts archives safely
  • Generates SHA256 hashes for all files
  • Updates version.txt in the required format

Usage

python updater.py 4.0.3 --output version.txt

Output format in gets appended in version.txt

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