Skip to content

Website: name the newest release and link straight to its installer - #54

Merged
codevector-2003 merged 1 commit into
mainfrom
website-release-links
Nov 24, 2026
Merged

codevector-2003 merged 1 commit into
mainfrom
website-release-links

Conversation

@codevector-2003

Copy link
Copy Markdown
Owner

The site could show an old version and send people to the releases page instead of the installer. The download buttons and version reset to fallbacks (the releases page, and versions 0.4.1 and 0.4.2) until the visitor's browser heard back from GitHub's API, which allows 60 requests an hour from one address.

  • site.js starts from the newest release known when the page was published (KNOWN = '0.4.4'). It links straight to that release's installer and fil archives, and fills in the version at once. GitHub's answer replaces these only when it names a newer release.
  • The two Windows buttons carry the direct v0.4.4 installer link in the HTML itself, and the home page's structured data (what Google reads) says 0.4.4. The old fallback versions in docs.js and home.js are gone.
  • Keeping it current: pages.yml gets a step that writes the latest release's version into site.js, the structured data and the installer links of the pages it deploys. The step is checked and does nothing if the tag isn't a version, and it changes only the deployed files, never main. release.yml gains a last job that starts that deploy on main (gh workflow run pages.yml --ref main) once the installer and checksums are attached.

Checked:

  • The replacements, run on copies as if 0.4.5 were out, update all three places.
  • The direct v0.4.4 installer and archive links answer 200.
  • The scripts parse.
  • Not seen yet: the new release job starting a real deploy. That happens at the next release.

The download buttons and the version reset to GitHub's releases page and
old fallback versions (0.4.1, 0.4.2) until the browser heard from GitHub,
which allows 60 requests an hour from one address, so visitors could see
an old version and no direct installer. site.js now starts from the newest
release known when the page was published, with direct links to its
installer and fil archives, and GitHub's answer replaces them only with a
newer release. The Windows buttons carry the direct installer link in the
page itself, and Google reads 0.4.4.

To keep this current, the Pages deploy writes the latest release's version
into the pages it publishes, and the release workflow starts that deploy
once a release is complete.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T14:32:48.791538Z 678f950 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codevector-2003
codevector-2003 merged commit 7a15fd1 into main Nov 24, 2026
7 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 678f950fa3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread site/assets/site.js Resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant