diff --git a/scripts/dash.mjs b/scripts/dash.mjs index 5c41ec183f5..fc518caa074 100644 --- a/scripts/dash.mjs +++ b/scripts/dash.mjs @@ -119,9 +119,8 @@ async function build() { console.info('compressing tgz'); // https://github.com/node-modules/compressing/issues/42 建议最好休眠15s,等待其余资源复制完毕 spawn("sleep", ['15']) - const tgzPath = pathJoin(process.cwd(), '.deploy', 'linux-command.docset'); const outputPath = pathJoin(process.cwd(), '.deploy', 'linux-command.docset.tgz'); - await tgz.compressDir(tgzPath, outputPath); + await tgz.compressDir(DOCSET_DIR, outputPath); } build()