Skip to content

added updater - #14

Open
kshitijk4poor wants to merge 2 commits into
inc0d3:masterfrom
kshitijk4poor:master
Open

added updater#14
kshitijk4poor wants to merge 2 commits into
inc0d3:masterfrom
kshitijk4poor:master

Conversation

@kshitijk4poor

@kshitijk4poor kshitijk4poor commented Mar 18, 2025

Copy link
Copy Markdown

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