Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 26, 2026

Motivation

  • Provide a one-click way to download and install the latest Everblock release from GitHub when a newer version is detected and reload the module configuration page after install.

Description

  • Add handling for submitEverblockUpdate in getContent() and expose an everblock_update_action admin URL to the configure template via Smarty.
  • Implement processEverblockUpdate() which downloads the release zip from the GitHub tag, extracts it, locates the module source inside the archive, and replaces the current module files.
  • Add helper methods locateEverblockSource(), replaceModuleFiles(), recursiveCopy(), removeDirectory(), and redirectToModuleConfiguration() to support safe installation and cleanup.
  • Add a form/button to views/templates/admin/configure.tpl to trigger the update (submitEverblockUpdate) and display a short notice that the page will reload after update.

Testing

  • No automated tests were run on the modified code.

Codex Task

@CySSoO CySSoO merged commit e80ebe3 into master Jan 26, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants