mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
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.
This commit is contained in:
parent
ce4b92039e
commit
35bc2cf520
@ -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},
|
||||
|
Loading…
Reference in New Issue
Block a user