build: rename atom.rc to electron.rc (#23098)
This commit is contained in:
		
					parent
					
						
							
								714d6c536f
							
						
					
				
			
			
				commit
				
					
						0e86163a3e
					
				
			
		
					 3 changed files with 3 additions and 3 deletions
				
			
		
							
								
								
									
										2
									
								
								BUILD.gn
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								BUILD.gn
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -1051,7 +1051,7 @@ if (is_mac) {
 | 
			
		|||
    if (is_win) {
 | 
			
		||||
      sources += [
 | 
			
		||||
        # TODO: we should be generating our .rc files more like how chrome does
 | 
			
		||||
        "shell/browser/resources/win/atom.rc",
 | 
			
		||||
        "shell/browser/resources/win/electron.rc",
 | 
			
		||||
        "shell/browser/resources/win/resource.h",
 | 
			
		||||
      ]
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -125,9 +125,9 @@ async function commitVersionBump (version) {
 | 
			
		|||
  await GitProcess.exec(gitArgs, ELECTRON_DIR);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// updates atom.rc file with new semver values
 | 
			
		||||
// updates electron.rc file with new semver values
 | 
			
		||||
async function updateWinRC (components) {
 | 
			
		||||
  const filePath = path.resolve(ELECTRON_DIR, 'shell', 'browser', 'resources', 'win', 'atom.rc');
 | 
			
		||||
  const filePath = path.resolve(ELECTRON_DIR, 'shell', 'browser', 'resources', 'win', 'electron.rc');
 | 
			
		||||
  const data = await readFile(filePath, 'utf8');
 | 
			
		||||
  const arr = data.split('\n');
 | 
			
		||||
  arr.forEach((line, idx) => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue