- Reorganize project structure with new electron and shared directories - Add comprehensive i18n support with Chinese, English, and Japanese locales - Update build configurations and TypeScript paths for new structure - Add various UI components including chat interface and task management - Include Windows release binaries and localization files - Update dependencies and fix import paths throughout the codebase
23 lines
583 B
JavaScript
23 lines
583 B
JavaScript
const fs = require('fs-extra')
|
|
const path = require('path')
|
|
|
|
function cleanBuildDirectories() {
|
|
const directoriesToRemove = [
|
|
path.resolve(process.cwd(), 'dist'),
|
|
path.resolve(process.cwd(), 'dist-electron'),
|
|
path.resolve(process.cwd(), 'out'),
|
|
]
|
|
|
|
for (const dir of directoriesToRemove) {
|
|
if (fs.pathExistsSync(dir)) {
|
|
try {
|
|
fs.removeSync(dir)
|
|
console.log(`Removed: ${path.relative(process.cwd(), dir)}`)
|
|
} catch (error) {
|
|
console.warn(`Failed to remove ${dir}: ${error.message}`)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
cleanBuildDirectories() |