mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-19 07:36:16 +00:00
chore: release v2.1.0 with stabilization and audit fixes
This commit is contained in:
+18
-6
@@ -203,13 +203,25 @@ async function compile() {
|
||||
}
|
||||
}
|
||||
|
||||
// ── 4. Copy static HTML files (join, impressum, datenschutz) ──
|
||||
// ── 4. Copy static HTML files ──
|
||||
console.log('Copying static pages...');
|
||||
const staticHtml = ['join.html', 'impressum.html', 'datenschutz.html'];
|
||||
for (const file of staticHtml) {
|
||||
const src = path.join(websiteDir, file);
|
||||
const dest = path.join(wwwDir, file);
|
||||
if (fs.existsSync(src)) { fs.copyFileSync(src, dest); console.log(` Copied: ${file}`); }
|
||||
fs.mkdirSync(path.join(wwwDir, 'de'), { recursive: true });
|
||||
const staticMappings = [
|
||||
{ src: 'join.html', dest: 'join.html' },
|
||||
{ src: 'imprint.html', dest: 'imprint.html' },
|
||||
{ src: 'privacy.html', dest: 'privacy.html' },
|
||||
{ src: 'impressum-de.html', dest: 'de/impressum.html' },
|
||||
{ src: 'datenschutz-de.html', dest: 'de/datenschutz.html' },
|
||||
{ src: 'impressum.html', dest: 'impressum.html' },
|
||||
{ src: 'datenschutz.html', dest: 'datenschutz.html' }
|
||||
];
|
||||
for (const mapping of staticMappings) {
|
||||
const src = path.join(websiteDir, mapping.src);
|
||||
const dest = path.join(wwwDir, mapping.dest);
|
||||
if (fs.existsSync(src)) {
|
||||
fs.copyFileSync(src, dest);
|
||||
console.log(` Copied: ${mapping.src} → ${mapping.dest}`);
|
||||
}
|
||||
}
|
||||
|
||||
// ── 5. Copy generic static files ──
|
||||
|
||||
Reference in New Issue
Block a user