Skip to content

Harden self-update flow, automate checksum maintenance, and improve installer#1

Open
sambhavthakkar wants to merge 3 commits into
Pulkit7070:mainfrom
sambhavthakkar:harden-update-install-flow
Open

Harden self-update flow, automate checksum maintenance, and improve installer#1
sambhavthakkar wants to merge 3 commits into
Pulkit7070:mainfrom
sambhavthakkar:harden-update-install-flow

Conversation

@sambhavthakkar
Copy link
Copy Markdown

This PR improves the reliability and usability of Multigravity’s install and self-update flows.

Changes

Hardened self-update in multigravity and multigravity.ps1:

  • download to a temporary file
  • SHA256 verification before replacement
  • backup + rollback on failure
  • clearer failure handling

Added checksum artifacts for update verification:

  • multigravity.sha256
  • multigravity.ps1.sha256

Automated checksum regeneration via:

  • scripts/update-checksums.sh
  • scripts/update-checksums.ps1
  • .github/workflows/update-checksums.yml

Improved installer safety in install.sh and install.ps1:

  • safer temporary file handling
  • backup/restore-style writes to reduce the risk of partial installs

Installer UX improvement:

  • install.sh now offers to automatically add ~/.local/bin to PATH when missing (with a safe non-interactive fallback).

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