Поправки для поддержки reverse-proxy, рефакторинг

This commit is contained in:
Book Pauk
2022-12-04 17:12:24 +07:00
parent 105680e38a
commit 409befce5e
6 changed files with 123 additions and 82 deletions

View File

@@ -9,7 +9,7 @@ module.exports = async(config) => {
if (await fs.pathExists(verFile)) {
const curPublicVersion = await fs.readFile(verFile, 'utf8');
if (curPublicVersion == config.version)
if (curPublicVersion == config.version + config.rootPathStatic)
return;
}
@@ -26,6 +26,6 @@ module.exports = async(config) => {
await zipReader.close();
}
await fs.writeFile(verFile, config.version);
await fs.writeFile(verFile, config.version + config.rootPathStatic);
await fs.remove(zipFile);
};