From 35bc2cf520fb96b5dd43d86938f90c4e6e597194 Mon Sep 17 00:00:00 2001 From: flububb Date: Sun, 16 Oct 2016 21:45:59 +0200 Subject: [PATCH] Pick the right architecture on linux #12972 I don't know if the fixation of the architecture on non linux platforms makes any sense (line 25). Maybe simply 'arch': process.arch is the right way to go. Can't test it on my linux machine. --- script/lib/package-application.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/lib/package-application.js b/script/lib/package-application.js index f48a5af2b..8c5ee7a4e 100644 --- a/script/lib/package-application.js +++ b/script/lib/package-application.js @@ -18,7 +18,12 @@ module.exports = function () { 'app-bundle-id': 'com.github.atom', 'app-copyright': `Copyright © 2014-${(new Date()).getFullYear()} GitHub, Inc. All rights reserved.`, 'app-version': CONFIG.appMetadata.version, - 'arch': process.platform === 'win32' ? 'ia32' : 'x64', + 'arch': (() => { + if (process.platform === 'linux') { + return process.arch + } else { + return process.platform === 'win32' ? 'ia32' : 'x64' + }})(), 'asar': {unpack: buildAsarUnpackGlobExpression()}, 'build-version': CONFIG.appMetadata.version, 'download': {cache: CONFIG.electronDownloadPath},