Removing not needed languages

This commit is contained in:
WolverinDEV 2020-12-02 19:00:08 +01:00
parent a8b540f97d
commit 804773f4eb
1 changed files with 10 additions and 0 deletions

View File

@ -382,6 +382,16 @@ new Promise((resolve, reject) => packager(options, (err, appPaths) => err ? reje
version = "v" + version;
await fs.writeFile(path_helper.join(app_path[0], "version"), version);
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 () => {
if(process.argv[2] == "win32") {
console.log("Installing local PDB files");