Skip to content

Prepare v1: one executable, icon, commit-linked docs, Send to menu, diagnostics - #9

Merged
geeooff merged 3 commits into
mainfrom
feat/v1-readiness
Nov 23, 2026
Merged

geeooff merged 3 commits into
mainfrom
feat/v1-readiness

Conversation

@geeooff

@geeooff geeooff commented Nov 23, 2026

Copy link
Copy Markdown
Owner

What

Everything the outside v1 review called a blocker or a should-do, plus the maintainer's choices: a release is one file, FFmpeg stays outside.

Release and packaging

  • The release is quick-video-transcoder.exe alone, with SHA256SUMS.txt and the changelog notes. No zip: the name carries no version, so replacing the file updates it and the Send to shortcut keeps working.
  • The C runtime is linked statically (.cargo/config.toml): the exe no longer imports VCRUNTIME140.dll (checked with dumpbin).
  • build.rs stamps the commit, embeds the third-party notices generated by cargo-about (about.toml, about.hbs), and compiles the icon and version block with rc.exe.
  • About, Help → Documentation and --version link the documentation of the build's commit (the GameModeExecutor approach). AGENTS.md now requires docs to change in the same commit.
  • Fixed the release notes regex (PowerShell ran $(.*?) as a subexpression: the first tag would have failed). The extraction now lives in build.ps1 and is tested on a sample changelog every run.
  • build.ps1 release checks that the built exe names the checkout's commit and carries the notices. PowerShell does not wait for a windowed program whose output it captures, so the check uses Start-Process -Wait.

For users

  • File → Add to Explorer's Send to menu replaces install-sendto.ps1, which Windows blocks once downloaded.
  • One window: a second launch hands its files to the open one over loopback with a token.
  • The log of the last two runs goes in the data folder. A message box appears on a panic or when the window cannot open.
  • FFmpeg missing or older than 7: a help window that offers Install FFmpeg for me through winget (Gyan.FFmpeg, user scope) when winget is present, then checks again. The PATH is re-read from the registry, so a fresh install is found without signing out.
  • An original icon (SVG source, rendered by scripts/render-icon.ps1).

Robustness

  • Encoders are tested with the real estimate and encode options. This exposed that CPU AV1 (SVT-AV1) always failed: it refuses -maxrate outside CRF. Fixed.
  • No parallel-encodes measurement for CPU encoders: one at a time.
  • tests/edge_cases.rs, end to end: no sound, shorter than a sample, portrait, odd size, accented folder, non-canonical path.

Checked

  • .\scripts\build.ps1 release passes locally: 65 unit tests, 3 end-to-end tests, notices 197 KB inside the exe.
  • Live: single-instance handoff, the About window, the FFmpeg window (with the debug-only QVT_PRETEND_NO_FFMPEG), and the exe icon.
  • Not checked: the winget install itself (it would really install FFmpeg here); actions/attest and release.yml on a real tag; AMD and Intel encoders.

The version stays 0.1.0: the bump to 1.0.0 belongs in a separate release commit.

🤖 Generated with Claude Code

geeooff and others added 3 commits November 23, 2026 15:09
…ostics

- build.rs stamps the commit and compiles the icon and version block (rc.exe);
  About, --version and the release readme link the documentation of that commit.
- The release zip: exe, readme with links at the build's commit, LICENSE.txt and
  THIRD-PARTY-NOTICES.html (cargo-about); SHA256SUMS.txt and notes.md beside it.
  The notes regex no longer breaks on PowerShell's $( ) and is tested every build.
- File > Add to Explorer's Send to menu replaces install-sendto.ps1, which
  Windows blocks when downloaded.
- One window: a second launch hands its files over a loopback socket.
- Log file of the last two runs, a message box on panic or when the window
  cannot open.
- FFmpeg missing or older than 7: a help window; the PATH is re-read from the
  settings so a fresh install is found without signing out.
- Encoders are tested with the real estimate and encode options; no parallel
  measurement for CPU encoders.
- End-to-end test of unusual videos: no sound, shorter than a sample, portrait,
  odd size, accented folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PowerShell does not wait for a windowed program whose output it captures: build.ps1 starts it with Start-Process -Wait, and --version no longer panics on a closed pipe. SVT-AV1 refuses -maxrate outside CRF, so the CPU AV1 encode always failed; the stricter encoder test exposed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- .cargo/config.toml links the C runtime statically: no Visual C++
  Redistributable needed (the exe imported VCRUNTIME140.dll).
- build.rs embeds the cargo-about notices passed in QVT_NOTICES; About opens
  them, --licenses prints them, and the release refuses an exe without them.
- The release is quick-video-transcoder.exe alone, with SHA256SUMS.txt and the
  changelog notes: no zip, no readme copy (About links the docs of the commit).
- When FFmpeg is missing and winget runs, the help window offers to install
  Gyan.FFmpeg for the user, then checks again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@geeooff
geeooff enabled auto-merge November 23, 2026 14:59
@geeooff
geeooff merged commit 52abe23 into main Nov 23, 2026
2 checks passed
@geeooff
geeooff deleted the feat/v1-readiness branch November 23, 2026 15:17
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