Skip to content

feat(site): one-line install scripts for macOS, Linux, and Windows - #74

Merged
jeffersonmourak merged 2 commits into
mainfrom
install-script
May 26, 2026
Merged

feat(site): one-line install scripts for macOS, Linux, and Windows#74
jeffersonmourak merged 2 commits into
mainfrom
install-script

Conversation

@jeffersonmourak

Copy link
Copy Markdown
Owner

What

One-line installers that fetch a prebuilt circ-compile for the user's platform:

  • macOS / Linux: curl -fsSL https://circ-lang.org/install.sh | sh
  • Windows (PowerShell): irm https://circ-lang.org/install.ps1 | iex

Both resolve the version from a downloads/latest pointer (so they always match
what is actually published), honor CIRC_VERSION and CIRC_INSTALL_DIR, and
install to ~/.local/bin or %LOCALAPPDATA%\circ\bin. The Download page gains a
"Quick install" section showing both, and tools/build-dist.sh now writes the
latest pointer next to the archives.

Notes

  • The shell script is POSIX (verified under sh and dash) and was run end to
    end against the live site. The PowerShell script was reviewed statically but
    not executed (no pwsh available when authoring); it should get one run on
    Windows.
  • Go-live needs tools/build-dist.sh re-run on main (to publish the current
    archives plus the new latest pointer) and a site deploy. Until then the
    one-liners are correct but the default version lookup has nothing to resolve
    to; CIRC_VERSION=<x.y.z> is the escape hatch.

Add curl|sh and irm|iex installers that fetch a prebuilt circ-compile for
the user's platform:
  curl -fsSL https://circ-lang.org/install.sh | sh    (macOS, Linux)
  irm https://circ-lang.org/install.ps1 | iex         (Windows)

Both resolve the version from a `downloads/latest` pointer so they track
what is actually published, honor CIRC_VERSION and CIRC_INSTALL_DIR, and
install to ~/.local/bin or %LOCALAPPDATA%\circ\bin. The Download page gains
a Quick install section showing both, and build-dist.sh now writes the
`latest` pointer alongside the archives.
sync-reference.ts output had drifted: the committed reference pages still
described the old setPin(id, value) / getOutputState API. Regenerate them
from DOCS so getting-started, wasm-api, circuit-format, and preview match
the paired-BigInt runtime API (setPin(id, value, defined), getOutputValue
and getOutputDefined) and the multi-bit format.
@jeffersonmourak
jeffersonmourak merged commit 5e7461e into main May 26, 2026
3 checks passed
@jeffersonmourak
jeffersonmourak deleted the install-script branch May 26, 2026 01:34
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