From: Cheng Zhao Date: Mon, 22 Dec 2014 00:30:48 +0000 (-0800) Subject: win: Update version file with unix line ending X-Git-Tag: v0.20.2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=80bea0766e81db29b36d8f8b0e9db3c2b17dd52a;p=electron.git win: Update version file with unix line ending --- diff --git a/script/bootstrap.py b/script/bootstrap.py index c2554e21..0ca94fdc 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -100,7 +100,7 @@ def create_chrome_version_h(): version = f.read() with open(template_file, 'r') as f: template = f.read() - with open(target_file, 'w+') as f: + with open(target_file, 'wb+') as f: content = template.replace('{PLACEHOLDER}', version.strip()) if f.read() != content: f.write(content)