Skip to content

Commit 3ab03dd

Browse files
authored
Avoid duplicated yaml entries (#858)
1 parent bc3cb0c commit 3ab03dd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

electron/packager/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,10 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
416416
const { url } = file;
417417
const { size } = fs.statSync(join(cwd, url));
418418
const newSha512 = await hashFile(join(cwd, url));
419-
newFiles.push({ ...file, sha512: newSha512, size });
419+
420+
if (!newFiles.find((f) => f.sha512 === newSha512)) {
421+
newFiles.push({ ...file, sha512: newSha512, size });
422+
}
420423
}
421424
newChannelFile.files = newFiles;
422425
}

0 commit comments

Comments
 (0)