Files
hanzo.sh/hanzo.yml
zeekay 31b75a7948 fix(installer): report partial installs and provenance clearly
Install prefixed native tool aliases, add strict verification, consolidate PATH guidance, and remove stale default availability notices. Explicit Node and Bot requests explain that native release assets are unavailable.

Testing: installer coordinator fixtures passed under sh and bash; pnpm build passed; generated installer parses in both shells.

Risk: strict mode requires the updated shared CLI installer and refuses older implementations. Existing short names remain supported.

How to revert: revert this commit and redeploy the site.
2026-10-21 14:28:40 -07:00

22 lines
823 B
YAML

# The export publishes to s3://hanzo-sites/hanzo/sh, which the edge serves as
# hanzo.sh. Which file `/` answers is the edge's rule, by Accept: page.html to a
# browser, install.sh to anything else (hanzo/universe infra/aws/routes/sites.yaml).
site:
slug: sh
dir: dist
build: pnpm install --frozen-lockfile && pnpm build
on: [main]
test:
# A byte before the doctype puts the page in quirks mode, and both published
# one-liners pipe the installer to a shell, so dash and bash must each parse it.
- name: page and installer
run: |
set -eu
pnpm install --frozen-lockfile && pnpm build
[ "$(head -c 15 dist/page.html)" = '<!DOCTYPE html>' ]
[ "$(head -1 dist/install.sh)" = '#!/bin/sh' ]
dash -n dist/install.sh
bash -n dist/install.sh
sh scripts/test-installer.sh