MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / platformName

Function platformName

apps/desktop/scripts/build-sidecar.ts:16–17  ·  view source on GitHub ↗
(platform: NodeJS.Platform)

Source from the content-addressed store, hash-verified

14const EXECUTOR_OUT_DIR = resolve(ROOT, "resources/executor");
15
16const platformName = (platform: NodeJS.Platform): string =>
17 platform === "win32" ? "windows" : platform;
18
19const currentTargetPackage = (): string =>
20 `executor-${platformName(process.platform)}-${process.arch}`;

Callers 1

currentTargetPackageFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected