From e67b0c564d92bf301dd118c06c507a67976e0d9a Mon Sep 17 00:00:00 2001 From: Timo <6156589+Shik3i@users.noreply.github.com> Date: Tue, 9 Jun 2026 22:00:31 +0200 Subject: [PATCH] fix(website): copy apple-touch-icon files to www root for iOS/Safari --- website/build.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/build.js b/website/build.js index 4d20632..b963d66 100644 --- a/website/build.js +++ b/website/build.js @@ -241,6 +241,14 @@ async function compile() { console.log(' Assets copied.'); } + // Copy apple-touch-icon to www root (browsers/iOS request these at /) + const appleTouchSrc = path.join(destAssets, 'apple-touch-icon.png'); + if (fs.existsSync(appleTouchSrc)) { + fs.copyFileSync(appleTouchSrc, path.join(wwwDir, 'apple-touch-icon.png')); + fs.copyFileSync(appleTouchSrc, path.join(wwwDir, 'apple-touch-icon-precomposed.png')); + console.log(' ✓ Apple touch icons copied to www root.'); + } + // ── 7. Convert all WebP to AVIF (quality 70) ── console.log('Converting WebP → AVIF...'); let avifCount = 0;