优化部署脚本,解决解压时的潜在冲突

This commit is contained in:
2024-12-22 16:24:31 +08:00
parent dad248828c
commit e985da169a

View File

@@ -4,7 +4,7 @@ const zip = require("./zip.js")
const start = () => {
zip.start().then(() => {
const tar = new JSZip();
['config.xml', 'api.php', 'linuxdo.php'].forEach(e => {
['config.xml', 'api.php', 'linuxdo.php','login.php'].forEach(e => {
const file = fs.readFileSync(e)
tar.file(e, file);
})