[PR #8] [MERGED] feat: Automatically cleanup old CLIProxyAPI versions during update #25

Closed
opened 2026-02-27 16:46:49 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/router-for-me/EasyCLI/pull/8
Author: @benzntech
Created: 10/24/2025
Status: Merged
Merged: 10/25/2025
Merged by: @luispater

Base: mainHead: feature/cleanup-old-cliproxy-versions


📝 Commits (1)

  • 3516412 feat: automatically cleanup old CLIProxyAPI versions during update

📊 Changes

1 file changed (+19 additions, -1 deletions)

View changed files

📝 src-tauri/src/main.rs (+19 -1)

📄 Description

Description

This PR adds automatic cleanup of old CLIProxyAPI version directories when a new version is downloaded and installed.

Changes

  • Added logic to remove old version directories after successful download and extraction
  • Only keeps the latest version to save disk space
  • Identifies version directories by checking if they start with a digit
  • Logs cleanup operations for debugging purposes

Benefits

  • Prevents accumulation of old CLIProxyAPI versions (e.g., 6.2.28, 6.2.29)
  • Saves disk space automatically
  • Users don't need to manually clean up old versions

Testing

  • Tested update process to ensure old versions are removed
  • Verified latest version remains intact after cleanup

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/router-for-me/EasyCLI/pull/8 **Author:** [@benzntech](https://github.com/benzntech) **Created:** 10/24/2025 **Status:** ✅ Merged **Merged:** 10/25/2025 **Merged by:** [@luispater](https://github.com/luispater) **Base:** `main` ← **Head:** `feature/cleanup-old-cliproxy-versions` --- ### 📝 Commits (1) - [`3516412`](https://github.com/router-for-me/EasyCLI/commit/3516412c4f90024aaf6afb350c053f62a93abb50) feat: automatically cleanup old CLIProxyAPI versions during update ### 📊 Changes **1 file changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src-tauri/src/main.rs` (+19 -1) </details> ### 📄 Description ## Description This PR adds automatic cleanup of old CLIProxyAPI version directories when a new version is downloaded and installed. ## Changes - Added logic to remove old version directories after successful download and extraction - Only keeps the latest version to save disk space - Identifies version directories by checking if they start with a digit - Logs cleanup operations for debugging purposes ## Benefits - Prevents accumulation of old CLIProxyAPI versions (e.g., 6.2.28, 6.2.29) - Saves disk space automatically - Users don't need to manually clean up old versions ## Testing - Tested update process to ensure old versions are removed - Verified latest version remains intact after cleanup --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 16:46:49 +03:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/EasyCLI#25
No description provided.