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

Function serializeManifest

scripts/merge-latest-mac-yml.ts:63–76  ·  view source on GitHub ↗
(manifest: UpdateManifest)

Source from the content-addressed store, hash-verified

61};
62
63const serializeManifest = (manifest: UpdateManifest): string =>
64 [
65 `version: ${manifest.version}`,
66 "files:",
67 ...manifest.files.flatMap((file) => [
68 ` - url: ${file.url}`,
69 ` sha512: ${file.sha512}`,
70 ` size: ${file.size}`,
71 ]),
72 `path: ${manifest.path}`,
73 `sha512: ${manifest.sha512}`,
74 `releaseDate: '${manifest.releaseDate}'`,
75 "",
76 ].join("\n");
77
78const [primaryPath, secondaryPath, outPath] = process.argv.slice(2);
79if (!primaryPath || !secondaryPath || !outPath) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected