mirror of https://github.com/jeecgboot/jeecg-boot
打包electron:build-all 报错少个文件copyChat.ts
parent
208861f808
commit
6c24b3cf30
|
@ -0,0 +1,14 @@
|
|||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
|
||||
const sourceDir = path.join(__dirname, '../../src/views/super/airag/aiapp/chat/js'); // 源目录
|
||||
const destDir = path.join(__dirname, '../../dist', 'chat'); // 目标目录
|
||||
|
||||
// 复制目录
|
||||
fs.copy(sourceDir, destDir)
|
||||
.then(() => {
|
||||
console.log(`成功将 ${sourceDir} 复制到 ${destDir}`);
|
||||
})
|
||||
.catch(err => {
|
||||
console.error(`复制目录失败: ${err.message}`);
|
||||
});
|
Loading…
Reference in New Issue