зеркало из https://github.com/electron/electron.git
build: read node files as binary files (#28729)
This commit is contained in:
Родитель
400d7c4bce
Коммит
8164322195
|
@ -88,7 +88,7 @@ def create_checksum(algorithm, directory, filename, files):
|
||||||
lines = []
|
lines = []
|
||||||
for path in files:
|
for path in files:
|
||||||
h = hashlib.new(algorithm)
|
h = hashlib.new(algorithm)
|
||||||
with open(path, 'r') as f:
|
with open(path, 'rb') as f:
|
||||||
h.update(f.read())
|
h.update(f.read())
|
||||||
lines.append(h.hexdigest() + ' ' + os.path.relpath(path, directory))
|
lines.append(h.hexdigest() + ' ' + os.path.relpath(path, directory))
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче