bach page writes a download page for a setup file, as one HTML file: the app’s name, version, publisher and size, a download button, how to install, update and remove it, and the file’s SHA-256 with the PowerShell command that checks it. The numbers come from the setup file, so they cannot disagree with the file.
The page
- One file, no script, no outside file. A content security policy allows nothing but its own style.
- It follows the reader’s light or dark setting and works on a phone.
- The button uses the setup file’s
accentcolour. A PNG logo travels inside the page. A logo over 256 KB, or an SVG one, is left out and the page shows the name. - The install text says whether the app installs for one user or, with
installer.scope = "machine", asks for administrator permission once. - Everything the setup file says is escaped before it goes into the page.
- The text is in English.
--json the command adds page (the file written), sha256 and size.
See also bach winget and Updates.