Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(native): manage up to two bundles for immediate rollback #130

Merged
merged 4 commits into from
Feb 21, 2025

Conversation

gronxb
Copy link
Owner

@gronxb gronxb commented Feb 21, 2025

2025-02-21.2.27.08.mov
  • Caching Mechanism:
    Instead of deleting the entire bundle-store on every update, the new implementation checks for a cached bundle using its bundleId. If found, the cached bundle is reused and the modification time of the final bundle directory is updated to keep it current. If not, the bundle is downloaded to a temporary directory (bundle-temp) and then moved to the final directory.

  • Cleanup of Old Bundles:
    A new cleanupOldBundles function removes all bundle directories in the bundle-store except for the two most recent ones, ensuring efficient disk space management.

  • Instant Rollback:
    With two bundles maintained, rollback now happens immediately without the need for a new download.

@gronxb gronxb changed the title refactor(native): If the download fails, it does not delete the prev bundle feat(native): manage up to two bundles for immediate rollback Feb 21, 2025
@gronxb gronxb merged commit 3c08944 into main Feb 21, 2025
6 checks passed
@gronxb gronxb deleted the feature/backup-prev-bundle branch February 21, 2025 05:30
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