Files
Piik/scripts/client-package-targets.mjs
T
AAA cfc323adce feat(media): integrate embedded media services and shared native encoding
Embed STUN and SFU in the shared Go process, reuse native encoding pipelines with independent adaptation, and complete Client lifecycle, settings, diagnostics and packaging fixes. Retain standard Browser senders after measured encoded-reuse limitations.
2026-09-09 06:09:06 +08:00

60 lines
1.6 KiB
JavaScript

export const CLOUDFLARED_VERSION = "2026.8.3";
export const CLIENT_PACKAGE_TARGETS = [
{
id: "windows-amd64",
nodePlatform: "win32",
nodeArch: "x64",
goos: "windows",
goarch: "amd64",
cgo: false,
clientName: "screener-client.exe",
tunnelName: "cloudflared.exe",
captureName: "screener-client-capture.exe",
tunnelAsset: "cloudflared-windows-amd64.exe",
tunnelSha256: "83e726ed18ea78c5ad5213c4c3a3a27051393950d2bc8ed4de69bec12d14eaae",
tunnelArchive: false,
},
{
id: "linux-amd64",
nodePlatform: "linux",
nodeArch: "x64",
goos: "linux",
goarch: "amd64",
cgo: false,
clientName: "screener-client",
tunnelName: "cloudflared",
captureName: "screener-client-capture",
tunnelAsset: "cloudflared-linux-amd64",
tunnelSha256: "f29324fe934d1e100617484c78deef803c4dc2cd351d645bbde42e96b4fccc5e",
tunnelArchive: false,
},
{
id: "darwin-arm64",
nodePlatform: "darwin",
nodeArch: "arm64",
goos: "darwin",
goarch: "arm64",
cgo: true,
clientName: "screener-client",
tunnelName: "cloudflared",
captureName: "screener-client-capture",
tunnelAsset: "cloudflared-darwin-arm64.tgz",
tunnelSha256: "40c9144d86df8937c5b43293a1f7d2d2107029aa74725023dd46b1b27154352f",
tunnelArchive: true,
},
];
export function clientPackageTarget(id) {
return CLIENT_PACKAGE_TARGETS.find((target) => target.id === id) ?? null;
}
export function clientGoEnvironment(target) {
return {
...process.env,
GOOS: target.goos,
GOARCH: target.goarch,
CGO_ENABLED: target.cgo ? "1" : "0",
};
}