Skip to content

Commit

Permalink
build: generate deps hash quietly (electron#42476)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Jun 13, 2024
1 parent a4f201a commit 1e219e4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions script/generate-deps-hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,10 @@ addAllFiles(path.resolve(__dirname, '../patches'));
// Create Hash
const hasher = crypto.createHash('SHA256');
const addToHashAndLog = (s) => {
console.log('Hashing:', s);
return hasher.update(s);
};
addToHashAndLog(`HASH_VERSION:${HASH_VERSIONS[process.platform] || FALLBACK_HASH_VERSION}`);
for (const file of filesToHash) {
console.log('Hashing Content:', file, crypto.createHash('SHA256').update(fs.readFileSync(file)).digest('hex'));
hasher.update(fs.readFileSync(file));
}

Expand Down

0 comments on commit 1e219e4

Please sign in to comment.