(manifest: UpdateManifest)
| 61 | }; |
| 62 | |
| 63 | const 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 | |
| 78 | const [primaryPath, secondaryPath, outPath] = process.argv.slice(2); |
| 79 | if (!primaryPath || !secondaryPath || !outPath) { |
no outgoing calls
no test coverage detected