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

Function buildPreviewTarballs

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

Source from the content-addressed store, hash-verified

670// ---------------------------------------------------------------------------
671
672const buildPreviewTarballs = async (binaries: Record<string, string>) => {
673 const previewDir = join(distDir, "previews");
674 await mkdir(previewDir, { recursive: true });
675 for (const platformPkg of Object.keys(binaries)) {
676 const srcBinDir = join(distDir, platformPkg, "bin");
677 const tarPath = join(previewDir, `${platformPkg}.tar.gz`);
678 await $`tar -czf ${tarPath} .`.cwd(srcBinDir).quiet();
679 console.log(`Preview tarball: ${tarPath}`);
680 }
681};
682
683// Resolve a comma-separated list of target package names (e.g.
684// "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