Improvements for the deploy windows script.#3680
Improvements for the deploy windows script.#3680JaminShanti wants to merge 8 commits intojamulussoftware:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Modernizes deploy_windows.ps1 to reduce external dependencies (removing VSSetup), improve build resilience on newer Visual Studio toolchains, and add better diagnostics/guardrails during Windows packaging.
Changes:
- Replaced VSSetup-based VS detection with native
vswhere.exeand added dynamicPlatformToolsetselection. - Added centralized logging, debug/skip toggles, and improved dependency download/caching behavior.
- Added an installer “safety gate” to prevent producing an empty package when no binaries were built.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Exiting comment, not mine. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Please specify where AI was used in case it was |
|
Hello Ann, |
|
I've not checked other Windows builds -- these appear to be non-fatal but I don't know why they happen: |
|
Similarly, I don't know if this is normal: https://github.com/jamulussoftware/jamulus/pull/3680/checks?check_run_id=75167700993 |
|
I'll check the errors. I was fataling on them but one of the findings I moved them to continue on error. |
| [string] $Command, | ||
| [string[]] $Arguments | ||
| ) | ||
| # --- Centralized Logging Function --- |
There was a problem hiding this comment.
AI comment which doesn't add too much value.
| } | ||
| } | ||
|
|
||
| # Execute native command with errorlevel handling and memory-safe logging |
There was a problem hiding this comment.
Ya I had to redo the native command function a few times from copilot feedback.
| Write-Log "Build and Deploy directories initialized." | ||
| } | ||
|
|
||
| # For sourceforge links we need to get the correct mirror (especially NISIS) Thanks: https://www.powershellmagazine.com/2013/01/29/pstip-retrieve-a-redirected-url/ |
There was a problem hiding this comment.
No. You may not remove any pointers/sources.
There was a problem hiding this comment.
I think that got trimmed when I was adjusting width for my IDE, added back.
|
This needs tough investigation as it clearly includes a lot of AI changes which may be unnecessary |
|
I expanded the System.Management.Automation.RemoteException, now it writes the exception that was discovered. |
Windows: Optimize deployment script and remove VSSetup dependency
Short description of changes
This PR modernizes and optimizes the
deploy_windows.ps1script to streamline the build process and eliminate external PowerShell module requirements. Key improvements include:VSSetupmodule with nativevswhere.execalls for locating Visual Studio installations, removing the need for NuGet/Package Provider setup.PlatformToolsetdetection (e.g.,v143for VS 2022) to ensure the script works out-of-the-box on newer dev environments.-Skip64Bitand-Skip32Bitflags for targeted debugging of the build pipeline, along with improved logging and registry-based Qt discovery fallbacks.CHANGELOG: Windows: Optimized the deployment script to remove module dependencies and improve build reliability.
Context: Fixes an issue?
This PR improves the local contributor experience on Windows by making the build environment more robust and easier to debug without external dependencies.
Does this change need documentation? What needs to be documented and how?
No user-facing documentation is required. Internal documentation for the new skip flags is handled via the script's
paramblock comments.Status of this Pull Request
Working implementation.
What is missing until this pull request can be merged?
Verification of the GitHub CI "Autobuild" checks once the PR is opened.
Checklist
AUTOBUILD: Please build all targets