(root: string, files: string[])
| 44 | } |
| 45 | |
| 46 | function sha256Dir(root: string, files: string[]): string { |
| 47 | const h = crypto.createHash('sha256'); |
| 48 | for (const f of files) h.update(fs.readFileSync(path.join(root, f))); |
| 49 | return h.digest('hex'); |
| 50 | } |
| 51 | |
| 52 | function main(): void { |
| 53 | const argv = process.argv; |