build: [gn win] fix path names in js2asar
This commit is contained in:
		
					parent
					
						
							
								27e6805889
							
						
					
				
			
			
				commit
				
					
						a6bc8030ea
					
				
			
		
					 2 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,7 @@ def copy_files(source_files, output_dir, folder_name):
 | 
			
		|||
    output_path = os.path.join(output_dir, source_file)
 | 
			
		||||
    # Files that aren't in the default_app folder need to be put inside
 | 
			
		||||
    # the temp one we are making so they end up in the ASAR
 | 
			
		||||
    if not source_file.startswith(folder_name + os.sep):
 | 
			
		||||
    if not os.path.normpath(source_file).startswith(folder_name + os.sep):
 | 
			
		||||
      output_path = os.path.join(output_dir, folder_name, source_file)
 | 
			
		||||
    safe_mkdir(os.path.dirname(output_path))
 | 
			
		||||
    shutil.copy2(source_file, output_path)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue