Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #596 from atom/as-fix-missing-flags
Browse files Browse the repository at this point in the history
Fix missing and hardcoded flags
  • Loading branch information
Antonio Scandurra authored Jul 22, 2016
2 parents 546b337 + a5d4676 commit 3b36e18
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/dedupe.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ class Dedupe extends Command

installNode: (callback) ->
installNodeArgs = ['install']
installNodeArgs.push("--runtime=electron")
installNodeArgs.push("--target=#{@electronVersion}")
installNodeArgs.push("--dist-url=#{config.getElectronUrl()}")
installNodeArgs.push('--arch=ia32')
installNodeArgs.push("--arch=#{config.getElectronArch()}")
installNodeArgs.push('--ensure')

env = _.extend({}, process.env, HOME: @atomNodeDirectory)
Expand Down Expand Up @@ -71,8 +72,9 @@ class Dedupe extends Command

forkDedupeCommand: (options, callback) ->
dedupeArgs = ['--globalconfig', config.getGlobalConfigPath(), '--userconfig', config.getUserConfigPath(), 'dedupe']
dedupeArgs.push("--runtime=electron")
dedupeArgs.push("--target=#{@electronVersion}")
dedupeArgs.push('--arch=ia32')
dedupeArgs.push("--arch=#{config.getElectronArch()}")
dedupeArgs.push('--silent') if options.argv.silent
dedupeArgs.push('--quiet') if options.argv.quiet

Expand Down
4 changes: 4 additions & 0 deletions src/install.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class Install extends Command

installNode: (callback) =>
installNodeArgs = ['install']
installNodeArgs.push("--runtime=electron")
installNodeArgs.push("--target=#{@electronVersion}")
installNodeArgs.push("--dist-url=#{config.getElectronUrl()}")
installNodeArgs.push("--arch=#{config.getElectronArch()}")
Expand Down Expand Up @@ -95,6 +96,7 @@ class Install extends Command

installArgs = ['--globalconfig', config.getGlobalConfigPath(), '--userconfig', config.getUserConfigPath(), 'install']
installArgs.push(modulePath)
installArgs.push("--runtime=electron")
installArgs.push("--target=#{@electronVersion}")
installArgs.push("--arch=#{config.getElectronArch()}")
installArgs.push("--global-style") if installGlobally
Expand Down Expand Up @@ -189,6 +191,7 @@ class Install extends Command

forkInstallCommand: (options, callback) ->
installArgs = ['--globalconfig', config.getGlobalConfigPath(), '--userconfig', config.getUserConfigPath(), 'install']
installArgs.push("--runtime=electron")
installArgs.push("--target=#{@electronVersion}")
installArgs.push("--arch=#{config.getElectronArch()}")
installArgs.push('--silent') if options.argv.silent
Expand Down Expand Up @@ -418,6 +421,7 @@ class Install extends Command

buildArgs = ['--globalconfig', config.getGlobalConfigPath(), '--userconfig', config.getUserConfigPath(), 'build']
buildArgs.push(path.resolve(__dirname, '..', 'native-module'))
buildArgs.push("--runtime=electron")
buildArgs.push("--target=#{@electronVersion}")
buildArgs.push("--arch=#{config.getElectronArch()}")

Expand Down
1 change: 1 addition & 0 deletions src/rebuild.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class Rebuild extends Command
'--userconfig'
config.getUserConfigPath()
'rebuild'
'--runtime=electron'
"--target=#{@electronVersion}"
"--arch=#{config.getElectronArch()}"
]
Expand Down

0 comments on commit 3b36e18

Please sign in to comment.