Поправлен баг

This commit is contained in:
Book Pauk
2022-10-07 19:19:55 +07:00
parent 68c4aac16e
commit 4817123599
2 changed files with 15 additions and 6 deletions

View File

@@ -41,4 +41,13 @@ module.exports = async(config) => {
await fs.writeFile(verFile, config.version);
await fs.remove(zipFile);
//rename app_new
const webAppDir = `${config.publicDir}/app`;
const appNewDir = `${config.publicDir}/app_new`;
if (await fs.pathExists(appNewDir)) {
await fs.remove(webAppDir);
await fs.move(appNewDir, webAppDir);
}
};