]> khamidou — GitHub mirrors - electron.git/commitdiff
win: Update version file with unix line ending
authorCheng Zhao <zcbenz@gmail.com>
Mon, 22 Dec 2014 00:30:48 +0000 (16:30 -0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 22 Dec 2014 00:30:48 +0000 (16:30 -0800)
script/bootstrap.py

index c2554e213a09195185680ec936b35c96ba0a87b5..0ca94fdc214fb3f1fe6f4d676bb743160fb68c62 100755 (executable)
@@ -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)