|
@@ -22,7 +22,7 @@ if(!fs.existsSync(distJoinPath)) {
|
|
|
|
|
|
// 创建文件输出流
|
|
|
console.log(`初始化zip文件流...`)
|
|
|
-const distZipPath = path.join(currentDirectory, '/zip/client.zip');
|
|
|
+const distZipPath = path.join(currentDirectory, '/zip/hac.zip');
|
|
|
let output = fs.createWriteStream(distZipPath)
|
|
|
let archive = archiver('zip', {
|
|
|
zlib: { level: 9 } // 设置压缩级别
|
|
@@ -30,7 +30,7 @@ let archive = archiver('zip', {
|
|
|
|
|
|
// 文件输出流结束
|
|
|
output.on('close', function() {
|
|
|
- console.log('打包完成,zip文件位于zip文件夹下,/zip/client.zip')
|
|
|
+ console.log('打包完成,zip文件位于zip文件夹下,/zip/hac.zip')
|
|
|
})
|
|
|
|
|
|
// 数据源是否耗尽
|