aboutsummaryrefslogtreecommitdiffstats
path: root/build.js
diff options
context:
space:
mode:
Diffstat (limited to 'build.js')
-rw-r--r--build.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/build.js b/build.js
index 5efd3eb..3e42930 100644
--- a/build.js
+++ b/build.js
@@ -263,6 +263,9 @@ if (import.meta.main) {
.replace('{{NWC_WAKE_FALLBACK}}', nwcSw ? '' : SW_WAKE_ONLY);
await Bun.write('dist/sw.js', nwcSw ? swBody + '\n' + await buildSwNwc() : swBody);
for (const f of STATIC) await Bun.write('dist/' + f, Bun.file('static/' + f));
+ // default avatars, self-hosted since coinos.io's copies are half-broken
+ const { readdirSync } = await import('node:fs');
+ for (const f of readdirSync('static/punks')) await Bun.write('dist/punks/' + f, Bun.file('static/punks/' + f));
const kb = (Buffer.byteLength(html) / 1024).toFixed(0);
console.log(`✓ dist/index.html written (${kb} KB) — open it offline, no server needed`);