Flecha distribution
Flecha 0.4 distributes one qualified toolchain bundle per supported platform.
Every bundle contains flecha, longbow, flecha-lsp, the runtime, the
standard library, and editor integration. Package-manager recipes consume those
same release artifacts instead of rebuilding an unqualified variant. Published
assets have SHA-256 checksums and GitHub build-provenance attestations.
Release artifacts
Section titled “Release artifacts”The release workflow produces and clean-installs:
| Platform | Portable bundle | Native package |
|---|---|---|
| Linux x86-64 | .tar.gz, .zip |
.deb installed under /opt/flecha |
| Windows x86-64 | .tar.gz, .zip |
unsigned NSIS .exe |
| macOS Intel | .tar.gz, .zip |
Homebrew formula generated from the archive |
| macOS Apple silicon | .tar.gz, .zip |
Homebrew formula generated from the archive |
The Debian and Windows packages are tested after installation in the same clean consumer jobs that exercise the portable archives. Publication stops if the compiler, language server, bundled runtime, or native smoke test fails.
Flecha 0.4.0 intentionally publishes the Windows executables and installer without Authenticode signatures. Windows Defender SmartScreen can therefore show an unrecognized-app warning, and managed Windows installations may refuse to run them. A self-signed certificate would not improve public trust, so the release does not use one. Verify the checksum and GitHub attestation before running a downloaded Windows artifact. Trusted Windows signing can be added to a later release without changing the bundle or installer layout.
From the directory containing a downloaded release asset, verify its build provenance with GitHub CLI:
gh attestation verify flecha-0.4.0-windows-x86_64.exe \ --repo segfaultcafe/flechaThe same command accepts the portable archives, native packages, VSIX,
installer scripts, distribution metadata, and SHA256SUMS. Attestations are
identity-bound provenance records; SHA256SUMS remains the portable integrity
check used by the fallback installers and package-manager recipes.
Fallback installers
Section titled “Fallback installers”After v0.4.0 is published, Linux and macOS users can install the compiler and
language server together with:
curl --proto '=https' --tlsv1.2 -fsSLO \ https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.shsh install.shWindows PowerShell users can use:
Invoke-WebRequest ` https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.ps1 ` -OutFile install.ps1powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1Both scripts verify the selected archive against the release SHA256SUMS. The
Unix installer links all three commands into ~/.local/bin. The PowerShell
installer uses a stable %LOCALAPPDATA%\Flecha\current\bin junction and adds it
to the user PATH. Local archives can be qualified before release with
--archive and --checksums (Unix) or -ArchivePath and -ChecksumsPath
(PowerShell).
Package-manager metadata
Section titled “Package-manager metadata”tools/generate_distribution_metadata.py accepts only a complete final
SHA256SUMS. It generates:
- a formula for the
segfaultcafe/homebrew-taprepository; - the three WinGet manifests for
Flecha.Flecha; - an AUR
flecha-binPKGBUILD; - an MSYS2 UCRT64
PKGBUILD; - the APT client source definition; and
- a machine-readable release asset manifest.
The release workflow attaches this metadata as
flecha-distribution-metadata-VERSION.tar.gz. Regenerate it locally with:
python3 tools/generate_distribution_metadata.py \ --version 0.4.0 \ --checksums path/to/SHA256SUMS \ --output build/distribution-metadatamake test-distribution checks the generator and the shell installer syntax.
The generated files deliberately live in the release output, not in this
repository, so stale hashes cannot be merged before the final binaries exist.
Channel promotion
Section titled “Channel promotion”Promote channels only after the GitHub release workflow finishes successfully:
- Commit
homebrew/Formula/flecha.rbtosegfaultcafe/homebrew-tap. Users can then runbrew install segfaultcafe/tap/flecha. - Submit the generated WinGet directory to
microsoft/winget-pkgsafter validating it withwinget validate. - Publish the AUR
PKGBUILDto theflecha-binAUR Git repository and runnamcapagainst the built package. - Submit the UCRT64 recipe to MSYS2 after a clean
makepkg-mingw -sCLfbuild. - Build the signed APT tree and publish it to the
flecha-aptPages repository.
Build an APT tree from the qualified .deb with:
packaging/apt/build-repository.sh \ flecha-0.4.0-linux-x86_64.deb \ build/flecha-apt stable FLECHA_APT_SIGNING_KEYThe command requires dpkg-scanpackages, apt-ftparchive, and a local GPG
secret key. Publish the resulting directory atomically, export the public key as
flecha.gpg, and verify installation from a machine that has never used the
repository.
Marketplace and Open VSX publication are a separate promotion decision. The release continues to attach the verified VSIX, but it does not publish to either marketplace until the publisher identities, tokens, listing text, and rollback policy are approved.
Release provenance and channel order
Section titled “Release provenance and channel order”Flecha 0.4.0 was published from the qualified release commit after the complete
test suite, sanitizers, stress and hardening campaigns, package qualification,
and clean-install checks passed. The v0.4.0 tag identifies that coordinated
compiler, runtime, standard-library, Longbow, language-server, and editor
toolchain.
The GitHub Release is the source of truth for the portable bundles, native packages, installers, checksums, distribution metadata, and build-provenance attestations. Package-manager channels are promoted separately from those exact qualified hashes, so a channel may become available after the GitHub assets. The fallback installers remain valid while a channel is awaiting promotion.
Future releases follow the same order: qualify the release commit, publish and verify the GitHub assets, then promote their immutable hashes to Homebrew, WinGet, MSYS2, APT, AUR, and any approved extension marketplaces.