(maint) Add 7zip update script from support branches and enhance for updated workflow#3900
Merged
Merged
Conversation
This is a quick and dirty script that fetches the specified 7-zip version and extracts them to the correct location in the repository. (cherry picked from commit 10db128)
Update the Update-7zipVersion.ps1 script to improve error handling, code clarity, and automate the CREDITS.json file update process. The script now requires PowerShell Core, adds explicit error handling, and automatically updates the 7-Zip version entry in the CREDITS.json file instead of requiring manual updates. Key Changes: - Add explicit error action preference for better error handling - Add type annotation to Version parameter for clarity - Rename variable to VersionWithoutDots for improved reuse - Automate CREDITS.json update with version information - Add validation and warning when 7-Zip entry not found - Update user message to reflect automated CREDITS update Reason for the change: - Improve script robustness with proper error handling - Reduce manual steps required after running the script - Enhance code maintainability with clearer variable names - Ensure consistency in CREDITS.json without manual edits - Provide feedback when manual intervention is needed
Update the 7zip version update script to automatically update the bundled applications test file with the new version number instead of requiring manual updates. Key Changes: - Add automatic detection and update of the BundledApplications.Tests.ps1 file - Implement regex pattern matching to find and replace the 7zip version in test file - Add error handling with warning message if test file is not found - Update final status message to display the new version number Reason for the change: - Eliminate manual test file updates after each 7zip version bump - Reduce human error and ensure test file stays in sync with actual 7zip version - Improve automation workflow by making the update process self-contained
Update the CREDITS.json file to use consistent 2-space indentation throughout the document instead of the previous 4-space indentation. This aligns with modern JSON formatting standards and improves readability. Key Changes: - Convert all indentation from 4 spaces to 2 spaces - Maintain all existing content and structure - Ensure valid JSON formatting is preserved Reason for the change: - Establish consistent code style across documentation - Reduce file size and improve maintainability - Follow industry best practices for JSON formatting - PowerShell ConvertTo-Json automatically creates JSON using 2 spaces
12 tasks
gep13
approved these changes
May 15, 2026
gep13
left a comment
Member
There was a problem hiding this comment.
From a Code Owners perspective this LGTM!
Member
|
Thanks for getting this pulled from the support branch and enhanced here @AdmiringWorm 👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description Of Changes
BundleApplications.Tests.ps1Credits.jsonfile consistent with what PowerShell ConvertTo-Json uses for indentationMotivation and Context
Streamline the 7-zip version update process by automating manual steps and improving script robustness with explicit error handling and validation.
Testing
.\Update-7zipVersion.ps1 -Version 26.00.\Update-7zipVersion.ps1 -Version 26.02Operating Systems Testing
Change Types Made
Change Checklist
Related Issue
N/A