fixup some bug for pake local html, update pake-cli version to 2.3.3

This commit is contained in:
Tlntin
2023-09-25 23:17:53 +08:00
parent a5d36f4419
commit f7411d2a6c
4 changed files with 21 additions and 17 deletions

View File

@@ -59,7 +59,9 @@ export async function mergeConfig(url: string, options: PakeAppOptions, tauriCon
fsExtra.moveSync(distDir, distBakDir, { overwrite: true });
fsExtra.copySync(dirName, distDir, { overwrite: true });
const filesToCopyBack = ['cli.js', 'about_pake.html'];
// ignore it, because about_pake.html have be erased.
// const filesToCopyBack = ['cli.js', 'about_pake.html'];
const filesToCopyBack = ['cli.js'];
await Promise.all(
filesToCopyBack.map(file => fsExtra.copy(path.join(distBakDir, file), path.join(distDir, file))),
);