From: Cheng Zhao Date: Wed, 1 Jul 2015 08:51:06 +0000 (+0800) Subject: Only allow building on 64bit machine X-Git-Tag: v0.29.0~3^2~22 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=432bab3107083a2257cf3a3d3262e273d54bb610;p=electron.git Only allow building on 64bit machine --- diff --git a/script/update.py b/script/update.py index 8d850905..2a0c0443 100755 --- a/script/update.py +++ b/script/update.py @@ -14,6 +14,10 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) def main(): os.chdir(SOURCE_ROOT) + if platform.architecture()[0] != '64bit': + print 'Electron is required to be built on a 64bit machine' + return 1 + update_external_binaries() return update_gyp() @@ -51,12 +55,5 @@ def run_gyp(target_arch, component): 'atom.gyp', '-Icommon.gypi'] + defines) -def get_host_arch(): - if platform.architecture()[0] == '32bit': - return 'ia32' - else: - return 'x64' - - if __name__ == '__main__': sys.exit(main())