Files
Piik/scripts/client-package-targets.mjs
T
AAA da47189fc3 refactor: unify Go runtime and audited frontend
Squash integration of the reviewed Go core, frontend audit fixes, release tooling, and deployment hygiene. CI passed all Server/Client jobs.
2026-09-06 23:26:01 +08:00

48 lines
1.4 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",
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",
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",
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;
}