[PR #5588] [MERGED] tools.func: optimize binary installs with fetch_and_deploy helper #5920

Closed
opened 2025-11-20 07:08:14 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/5588
Author: @MickLesk
Created: 6/30/2025
Status: Merged
Merged: 6/30/2025
Merged by: @michelroegl-brunner

Base: mainHead: tools_fnc


📝 Commits (1)

  • 314fd48 tools.func: optimize binary build installs with helper

📊 Changes

1 file changed (+18 additions, -7 deletions)

View changed files

📝 misc/tools.func (+18 -7)

📄 Description

✍️ Description

This patch extends fetch_and_deploy_gh_release() to support an optional 6th parameter (asset filename pattern) in binary mode. If provided, it prioritizes this filename over architecture heuristics to select the correct .deb asset.

Changes:

  • Added matching logic for $6 in binary mode (optional asset name)
  • Retains existing arch-based and fallback heuristics

=> needed for Librespeed-Rust from VED

Link: #

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 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/community-scripts/ProxmoxVE/pull/5588 **Author:** [@MickLesk](https://github.com/MickLesk) **Created:** 6/30/2025 **Status:** ✅ Merged **Merged:** 6/30/2025 **Merged by:** [@michelroegl-brunner](https://github.com/michelroegl-brunner) **Base:** `main` ← **Head:** `tools_fnc` --- ### 📝 Commits (1) - [`314fd48`](https://github.com/community-scripts/ProxmoxVE/commit/314fd48ea6af69cd4261b363d7c51c7d3e8243af) tools.func: optimize binary build installs with helper ### 📊 Changes **1 file changed** (+18 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `misc/tools.func` (+18 -7) </details> ### 📄 Description ## ✍️ Description This patch extends fetch_and_deploy_gh_release() to support an optional 6th parameter (asset filename pattern) in binary mode. If provided, it prioritizes this filename over architecture heuristics to select the correct .deb asset. **Changes:** - Added matching logic for $6 in binary mode (optional asset name) - Retains existing arch-based and fallback heuristics => needed for Librespeed-Rust from VED ## 🔗 Related PR / Issue Link: # ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [x] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 07:08:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/ProxmoxVE#5920