Skip to content

Commit

Permalink
fix(docset): resolve error during docset file generation. #601
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Sep 3, 2024
1 parent 4249725 commit 16c4a08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/dash.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ async function build() {

console.info('compressing tgz');
// https://github.com/node-modules/compressing/issues/42 建议最好休眠15s,等待其余资源复制完毕
spawn("sleep", ['15'])
// 确保所有操作完成后再压缩
await new Promise(resolve => setTimeout(resolve, 30000)); // 增加到 30 秒

const outputPath = pathJoin(process.cwd(), '.deploy', 'linux-command.docset.tgz');
await tgz.compressDir(DOCSET_DIR, outputPath);
}
Expand Down

0 comments on commit 16c4a08

Please sign in to comment.