build: strip v in the getElectronVersion helper
This commit is contained in:
		
					parent
					
						
							
								625b4619d6
							
						
					
				
			
			
				commit
				
					
						99a34d5209
					
				
			
		
					 2 changed files with 2 additions and 1 deletions
				
			
		
							
								
								
									
										1
									
								
								BUILD.gn
									
										
									
									
									
								
							
							
						
						
									
										1
									
								
								BUILD.gn
									
										
									
									
									
								
							| 
						 | 
					@ -113,6 +113,7 @@ electron_version = exec_script("script/print-version.py",
 | 
				
			||||||
                               [
 | 
					                               [
 | 
				
			||||||
                                 ".git/packed-refs",
 | 
					                                 ".git/packed-refs",
 | 
				
			||||||
                                 ".git/HEAD",
 | 
					                                 ".git/HEAD",
 | 
				
			||||||
 | 
					                                 "script/lib/get-version.js",
 | 
				
			||||||
                               ])
 | 
					                               ])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (is_mas_build) {
 | 
					if (is_mas_build) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,5 +18,5 @@ module.exports.getElectronVersion = () => {
 | 
				
			||||||
    console.error(output.stderr);
 | 
					    console.error(output.stderr);
 | 
				
			||||||
    throw new Error('Failed to get current electron version');
 | 
					    throw new Error('Failed to get current electron version');
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
  return output.stdout.toString().trim();
 | 
					  return output.stdout.toString().trim().replace(/^v/g, '');
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue