Something went wrong. Try again.
fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)
Something went wrong. Try again.
1.4 kB · 39 lines
JavaScript
at main
12345678910111213141516171819202122232425262728293031323334353637383940#!/usr/bin/env nodeimport { resolve } from "node:path";import { pathToFileURL } from "node:url";
// The single source of truth for the compiled release platform set.// Every entry is a Bun compile target (`bun-<platform>`), an archive suffix// (`prime-agent-<version>-<platform>.tar.gz`), and a value the installer can// emit from `install.sh --native-platform`.//// Linux ships four x64 and two arm64 variants so that no Linux host falls back// to the Node installation: glibc and musl each need their own build, and x64// CPUs without AVX2 need Bun's baseline build. macOS needs no baseline variant// because macOS 13 only runs on 2017-and-newer Macs, which all have AVX2.export const releasePlatforms = [ "darwin-arm64", "darwin-x64", "linux-arm64", "linux-arm64-musl", "linux-x64", "linux-x64-baseline", "linux-x64-musl", "linux-x64-musl-baseline",];
// The v1 manifest field stays limited to the original platform schema.// The v2 field uses releasePlatforms so current clients can select every// supported archive without changing the v1 compatibility contract.export const manifestV1Platforms = [ "darwin-arm64", "darwin-x64", "linux-arm64", "linux-x64",];
export const darwinReleasePlatforms = releasePlatforms.filter((platform) => platform.startsWith("darwin-"));
if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) { console.log(releasePlatforms.join("\n"));}