Repository navigation
Fix Linux PG installs when the GUI release lacks an unpacked CLI - #8687
Merged
Merged
Conversation
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.
Linux PG GUI installation currently fails with “missing the GUI or bundled CLI” when a GUI release has no native executable at either unpacked CLI path. This blocks callers such as the Android job even though the same PG release publishes a standalone CLI archive.
If the GUI is present but its bundled CLI is missing, download the matching standalone Linux CLI from the same release tag and variant (
linux,linux-ubuntu22orlinux-arm64). Install it at the native resource path and asprojectGeneratorCmd, preserving the existing GUI install behavior. Complete GUI archives need no additional download. Failed downloads or incomplete archives leave the prior installation intact.Extend the installer fixtures for the missing-CLI fallback, tag/architecture matching, download failure, corrupt archives and missing executables. Run the regression suite inside the existing Android job.
Validation:
python3 scripts/dev/tests/test-download-pg.pypasses for Linux, Ubuntu 22, ARM64, macOS and Windows fixtures, including menu discovery and failed-install preservation.bash -n scripts/dev/download_pg.shandgit diff --checkpass. Standalone archive layout and asset naming were checked against the PG Linux packaging workflow. Full Android builds run in CI; release binary execution was not tested locally.