Removing not needed languages
This commit is contained in:
		
							parent
							
								
									a8b540f97d
								
							
						
					
					
						commit
						804773f4eb
					
				| @ -382,6 +382,16 @@ new Promise((resolve, reject) => packager(options, (err, appPaths) => err ? reje | |||||||
|         version = "v" + version; |         version = "v" + version; | ||||||
|     await fs.writeFile(path_helper.join(app_path[0], "version"), version); |     await fs.writeFile(path_helper.join(app_path[0], "version"), version); | ||||||
|     return app_path; |     return app_path; | ||||||
|  | }).then(async appPaths => { | ||||||
|  |     console.log("Removing locals folder"); | ||||||
|  |     for(const locale of await fs.readdir(path_helper.join(appPaths[0], "locales"))) { | ||||||
|  |         if(locale.match(/en-US\.pak/)) { | ||||||
|  |             continue; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         await fs.remove(path_helper.join(appPaths[0], "locales", locale)) | ||||||
|  |     } | ||||||
|  |     return appPaths; | ||||||
| }).then(async () => { | }).then(async () => { | ||||||
|     if(process.argv[2] == "win32") { |     if(process.argv[2] == "win32") { | ||||||
|         console.log("Installing local PDB files"); |         console.log("Installing local PDB files"); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user