Build And Release
The current package is@plato/pc-printer.
Scripts
Build Locally
Create Release Zip
- Increments
src/version.ts. - Builds the driver into
dist. - Prepares the configured Windows Redis binary.
- Builds
output/plato-printer.exe. - Copies
config.json. - Copies Caddy assets.
- Copies certificates.
- Copies
redis-binaries/<redis.version>. - Creates
plato-printer.zip.
Release Contents
Versioning
src/version.ts contains:
GET /health and printed in the startup banner. Do not edit this file manually; scripts/increment-version.js updates it during pnpm bundle.
Caddy Preparation
Caddy is pinned to2.6.4.
To download Caddy into assets/caddy before bundling:
assets/caddy/caddy.exe exists, runtime setup can copy it instead of downloading Caddy on the customer machine.
Redis Binary Preparation
scripts/prepare-redis-binaries.js reads config.json and downloads the configured Windows Redis release if missing.
The expected path is:
Stress Test
The stress test starts mock TCP printers and sends many/print requests.
Release Checklist
- Confirm
config.jsonis correct for the release. - Confirm Caddy assets exist if HTTPS should work offline.
- Run
pnpm --filter @plato/pc-printer clean. - Run
pnpm --filter @plato/pc-printer bundle. - Run the executable from
output/. - Check
GET /health. - Run a real test print.
- Verify
plato-printer.zipcontains the expected files.