const fs = require('fs');
const path = require('path');

const src = path.join(__dirname, 'static', 'images');
const dst = path.join(__dirname, 'dist', 'static', 'images');

if (!fs.existsSync(dst)) {
  fs.mkdirSync(dst, { recursive: true });
}

if (fs.existsSync(src)) {
  fs.readdirSync(src).forEach(f => {
    const srcFile = path.join(src, f);
    const dstFile = path.join(dst, f);
    fs.copyFileSync(srcFile, dstFile);
    console.log('Copied:', f);
  });
}

console.log('Logo复制完成');