Add runas as devDependencies, or the python script will install it again and again.
The options of register_msdia80_dll.js should be admin. Fix the problem of runas not works cause it will escape command parameters by default.
This commit is contained in:
		
					parent
					
						
							
								24d615d428
							
						
					
				
			
			
				commit
				
					
						fa011c3d97
					
				
			
		
					 3 changed files with 11 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -29,8 +29,6 @@ def main():
 | 
			
		|||
  update_submodules()
 | 
			
		||||
  update_node_modules('.')
 | 
			
		||||
  bootstrap_brightray(args.url)
 | 
			
		||||
  if sys.platform in ['win32', 'cygwin']:
 | 
			
		||||
    install_runas()
 | 
			
		||||
 | 
			
		||||
  create_chrome_version_h()
 | 
			
		||||
  touch_config_gypi()
 | 
			
		||||
| 
						 | 
				
			
			@ -96,14 +94,6 @@ def update_win32_python():
 | 
			
		|||
    if not os.path.exists('python_26'):
 | 
			
		||||
      execute_stdout(['git', 'clone', PYTHON_26_URL])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def install_runas():
 | 
			
		||||
  # TODO This is needed by the tools/win/register_msdia80_dll.js, should move
 | 
			
		||||
  # this to a better place.
 | 
			
		||||
  with scoped_cwd(os.path.join(SOURCE_ROOT, 'tools', 'win')):
 | 
			
		||||
    execute_stdout([NPM, 'install', 'runas'])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def create_chrome_version_h():
 | 
			
		||||
  version_file = os.path.join(SOURCE_ROOT, 'vendor', 'brightray', 'vendor',
 | 
			
		||||
                              'libchromiumcontent', 'VERSION')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue