Repository navigation
feat(builder): show when a newer Builder release exists - #68
Merged
Merged
Conversation
On start the Windows wizard asks GitHub for the latest release on a detached thread (WinHTTP, 5 s timeouts) and, if its tag is newer than the Builder's version, shows a bottom-left button that opens the release page. The page URL is built from the validated tag, never taken from the response. --no-update-check or P3P3DS_NO_UPDATE_CHECK turn it off, --cli never checks, --check-update prints the result, --version shows the version. The version comes from builder.rc through CMake. Verified: real API reports v0.3.2 and no update; a local server with v9.9.9 shows the banner; an unreachable server shows nothing; 0 requests from --cli, --no-update-check and the environment switch; imports stay system DLLs plus WINHTTP; CTest 32/32.
This was referenced Nov 5, 2026
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.
The Windows Builder shows when a newer release exists.
platform/pc/builder/update_check.{hpp,cpp}(no network code, unit-tested): version parsing (v1.2.3, strict), the top-leveltag_nameof a releases/latest response (nested objects ignored), comparison.https://api.github.com/repos/endercodezz/P3P3DS/releases/latestwith WinHTTP (5 s timeouts,User-Agent: P3P3DS-Builder/<version>). A newer tag shows a bottom-left button "Update: Builder X.Y.Z is available" that openshttps://github.com/endercodezz/P3P3DS/releases/tag/<tag>, plus a close button. The URL is built from the validated tag, never taken from the response.--no-update-checkorP3P3DS_NO_UPDATE_CHECK=1.--clibuilds never check.--check-updateprints the result in a console;--versionshows the version.P3P3DS_UPDATE_URLoverrides the URL for tests.builder.rcFileVersion through CMake, so a release still bumps one place andrelease.ymlis unchanged.Verified (Windows):
--check-update-> "latest release: v0.3.2; no update" in about 1 s.v9.9.9, with a foreignhtml_urland a nestedtag_name: the banner appears (window capture), the page is built from the tag, the foreign URL is ignored.--check-updatereturns after about 2 s.--cli,--no-update-checkandP3P3DS_NO_UPDATE_CHECK=1.WINHTTP.dll.test_update_check(versions, tag extraction from real-shaped, error, malformed and hostile responses, builder version = builder.rc). CTest 32/32.[UNVERIFIED] The Linux console Builder gets
--versiononly, no update check (statically linked, no TLS library).Closes #67