Publishing Archives¶
Tiparo previews and Tiparo downloads are intentionally separate. The previews are bundled into the app and the full archives are uploaded to R2.
What gets published¶
The published archive is built from:
This means the download can include the complete upstream material, not just the lightweight preview files stored in git.
Archive URL model¶
The public base URL lives in:
For relative source.archive values, the final public URL becomes:
Publish command¶
For real uploads, Wrangler must already be authenticated locally or have
CLOUDFLARE_API_TOKEN set in the environment.
The publish script:
- validates
family.toml - runs
fonts:sync - creates a temporary
tar.gz - computes a short SHA-256 hash
- uploads to R2 using Wrangler
- writes the short hash back into
archive_version - regenerates the runtime manifest
Dry run mode¶
To inspect the result without uploading:
Manual version control¶
If you need to update only the version path:
This only edits archive_version in the corresponding family.toml.
R2 object metadata¶
The publish script uploads with:
Content-Type: application/gzipContent-Disposition: attachmentCache-Control: public, max-age=31536000, immutable
So the browser treats it as a downloadable archive, and the long cache lifetime is safe because the URL path changes with the hash.