fix: use gn/clang-format from src (#19145)
* fix: use gn/clang-format from src * fix: download clang-format in lint job * chore: fix linting warning * chore: get_path_in_buildtools => get_buildtools_executable * chore: the clang-format npm package is not used
This commit is contained in:
		
					parent
					
						
							
								d79e6bbffe
							
						
					
				
			
			
				commit
				
					
						436d5c9ac1
					
				
			
		
					 7 changed files with 39 additions and 26 deletions
				
			
		| 
						 | 
				
			
			@ -246,3 +246,15 @@ def get_electron_exec():
 | 
			
		|||
 | 
			
		||||
  raise Exception(
 | 
			
		||||
      "get_electron_exec: unexpected platform '{0}'".format(sys.platform))
 | 
			
		||||
 | 
			
		||||
def get_buildtools_executable(name):
 | 
			
		||||
  buildtools = os.path.realpath(os.path.join(ELECTRON_DIR, '..', 'buildtools'))
 | 
			
		||||
  chromium_platform = {
 | 
			
		||||
    'darwin': 'mac',
 | 
			
		||||
    'linux2': 'linux64',
 | 
			
		||||
    'win32': 'win',
 | 
			
		||||
  }[sys.platform]
 | 
			
		||||
  path = os.path.join(buildtools, chromium_platform, name)
 | 
			
		||||
  if sys.platform == 'win32':
 | 
			
		||||
    path += '.exe'
 | 
			
		||||
  return path
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue