Description
Companion to #46 (Unix installation script). Provide a PowerShell installation script scripts/install.ps1 to allow single-command installation on Windows:
irm https://raw.githubusercontent.com/metacall/meta-ast/main/scripts/install.ps1 | iex
Requirements
- Detect target architecture (
x86_64-pc-windows-msvc).
- Query GitHub Releases API for the latest release or accept an explicit
-Version parameter.
- Download the matching
.zip / binary release artifact.
- Verify the SHA-256 checksum against the published
SHA256SUMS.
- Extract and install
meta-ast.exe into ~\.meta-ast\bin (or %LOCALAPPDATA%\meta-ast\bin).
- Add the installation directory to user
PATH if not already present.
Helpful Pointers
- Look at release artifact naming in
.github/workflows/ci.yml and GitHub releases.
- Ensure the script runs with default execution policies where possible.
Description
Companion to #46 (Unix installation script). Provide a PowerShell installation script
scripts/install.ps1to allow single-command installation on Windows:Requirements
x86_64-pc-windows-msvc).-Versionparameter..zip/ binary release artifact.SHA256SUMS.meta-ast.exeinto~\.meta-ast\bin(or%LOCALAPPDATA%\meta-ast\bin).PATHif not already present.Helpful Pointers
.github/workflows/ci.ymland GitHub releases.