Skip to content
Permalink
Browse files

use binary encoding to read files

  • Loading branch information...
pandamicro committed Dec 12, 2017
1 parent e775fea commit 686356972525ba60de1e9d174cbb873f0edb57d6
Showing with 1 addition and 1 deletion.
  1. +1 −1 version_generator.js
@@ -68,7 +68,7 @@ function readDir (dir, obj) {
else if (stat.isFile()) {
// Size in Bytes
size = stat['size'];
md5 = crypto.createHash('md5').update(fs.readFileSync(subpath)).digest('hex');
md5 = crypto.createHash('md5').update(fs.readFileSync(subpath, 'binary')).digest('hex');
compressed = path.extname(subpath).toLowerCase() === '.zip';

relative = path.relative(src, subpath);

0 comments on commit 6863569

Please sign in to comment.
You can’t perform that action at this time.