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

Function buildPreviewTarballs

apps/cli/src/build.ts:601–610  ·  view source on GitHub ↗
(binaries: Record<string, string>)

Source from the content-addressed store, hash-verified

599// ---------------------------------------------------------------------------
600
601const buildPreviewTarballs = async (binaries: Record<string, string>) => {
602 const previewDir = join(distDir, "previews");
603 await mkdir(previewDir, { recursive: true });
604 for (const platformPkg of Object.keys(binaries)) {
605 const srcBinDir = join(distDir, platformPkg, "bin");
606 const tarPath = join(previewDir, `${platformPkg}.tar.gz`);
607 await $`tar -czf ${tarPath} .`.cwd(srcBinDir).quiet();
608 console.log(`Preview tarball: ${tarPath}`);
609 }
610};
611
612// Resolve a comma-separated list of target package names (e.g.
613// "executor-windows-x64") to Targets. Shared by `--target` and the

Callers 1

build.tsFile · 0.85

Calls 1

logMethod · 0.80

Tested by

no test coverage detected