From c09c7a2248a9e4d66c3ca2d0c7bcbddfe432ca59 Mon Sep 17 00:00:00 2001 From: Grigory Date: Fri, 12 Dec 2014 22:20:20 +0300 Subject: [PATCH] Fixed 64-bit windows install 64-bit version is not available under Windows, so install fails with 404 download error. Fixed by patching windows install. --- npm/install.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/npm/install.js b/npm/install.js index b202dc00e45f..1d612272e5e3 100755 --- a/npm/install.js +++ b/npm/install.js @@ -8,6 +8,10 @@ var fs = require('fs') var platform = os.platform() var arch = os.arch() +if ('win32' === platform) { + // 64-bit is not available under windows. + arch = 'ia32'; +} var version = '0.19.5' var name = 'atom-shell-v'+version+'-'+platform+'-'+arch+'.zip' var url = 'https://github.com/atom/atom-shell/releases/download/v'+version+'/atom-shell-v'+version+'-'+platform+'-'+arch+'.zip'