Repository navigation
feat(cs2): auto-upgrade pre-AG2 demos and parallelize demo repair - #220
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f112710ca
ℹ️ 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".
| & powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File (Join-Path $PSScriptRoot 'stage-bundled-ffmpeg.ps1') -Destination (Join-Path $runtime 'ffmpeg') | ||
| if ($LASTEXITCODE -ne 0) { throw 'Staging bundled FFmpeg failed.' } | ||
| # ---- Pre-AG2 legacy demo upgrader: standalone GPL-3.0 CLI helper with its LICENSE beside it ------- | ||
| & powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File (Join-Path $PSScriptRoot 'stage-bundled-demo-upgrade.ps1') -Destination (Join-Path $runtime 'x64\FilmmakerDemoUpgrade') |
There was a problem hiding this comment.
Stage the upgrader for thin runtime payloads
For users of the supported thin installer, this staging call only adds the executable to the bundled runtime. build-release-payload.ps1 builds the downloadable runtime by copying bin/x64 and does not stage the upgrader, so that payload lacks the file FindUpgradeExe() looks for and protocols 13948–14141 remain unsupported. Stage the helper in the release-payload path as well.
Useful? React with 👍 / 👎.
| const DemoHeaderInfo src = ReadDemoHeader(demoPath); | ||
| const DemoHeaderInfo out = ReadDemoHeader(repairedPath); | ||
| if (!out.ok) { outWhy = "the repaired copy has no readable demo header"; return false; } | ||
| if (requireProtocolUpgrade && out.networkProtocol > 0 && out.networkProtocol <= kRejectedAtOrBelowProtocol) { |
There was a problem hiding this comment.
Reject upgraded headers without a protocol
If an upgraded output has a readable demo magic/header but lacks network_protocol, ReadDemoHeader can return ok with out.networkProtocol == 0; this condition then accepts it as upgraded. The caller may cache and serve a copy whose protocol was never verified. Reject zero or otherwise unknown protocols when an upgrade is required.
Useful? React with 👍 / 👎.
Closes #219.
Summary
epaired.dem\ and writing a 3-part .src\ cache marker.
untime/x64/FilmmakerDemoUpgrade, matching the bundled FFmpeg pattern).
Verification