Pular para o conteúdo

Flecha distribution

Este conteúdo não está disponível em sua língua ainda.

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.

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:

Terminal window
gh attestation verify flecha-0.4.0-windows-x86_64.exe \
--repo segfaultcafe/flecha

The 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.

After v0.4.0 is published, Linux and macOS users can install the compiler and language server together with:

Terminal window
curl --proto '=https' --tlsv1.2 -fsSLO \
https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.sh
sh install.sh

Windows PowerShell users can use:

Terminal window
Invoke-WebRequest `
https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.ps1 `
-OutFile install.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1

Both 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).

tools/generate_distribution_metadata.py accepts only a complete final SHA256SUMS. It generates:

  • a formula for the segfaultcafe/homebrew-tap repository;
  • the three WinGet manifests for Flecha.Flecha;
  • an AUR flecha-bin PKGBUILD;
  • 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:

Terminal window
python3 tools/generate_distribution_metadata.py \
--version 0.4.0 \
--checksums path/to/SHA256SUMS \
--output build/distribution-metadata

make 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.

Promote channels only after the GitHub release workflow finishes successfully:

  1. Commit homebrew/Formula/flecha.rb to segfaultcafe/homebrew-tap. Users can then run brew install segfaultcafe/tap/flecha.
  2. Submit the generated WinGet directory to microsoft/winget-pkgs after validating it with winget validate.
  3. Publish the AUR PKGBUILD to the flecha-bin AUR Git repository and run namcap against the built package.
  4. Submit the UCRT64 recipe to MSYS2 after a clean makepkg-mingw -sCLf build.
  5. Build the signed APT tree and publish it to the flecha-apt Pages repository.

Build an APT tree from the qualified .deb with:

Terminal window
packaging/apt/build-repository.sh \
flecha-0.4.0-linux-x86_64.deb \
build/flecha-apt stable FLECHA_APT_SIGNING_KEY

The 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.

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.