优化部署脚本,解决解压时的潜在冲突
This commit is contained in:
@@ -4,7 +4,7 @@ const zip = require("./zip.js")
|
|||||||
const start = () => {
|
const start = () => {
|
||||||
zip.start().then(() => {
|
zip.start().then(() => {
|
||||||
const tar = new JSZip();
|
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)
|
const file = fs.readFileSync(e)
|
||||||
tar.file(e, file);
|
tar.file(e, file);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user