davanstrien HF Staff commited on
Commit
ce38ee1
·
verified ·
1 Parent(s): b56c709

Build: generate icons

Browse files
Files changed (1) hide show
  1. scripts/build.mjs +2 -0
scripts/build.mjs CHANGED
@@ -4,6 +4,7 @@ import { cpSync, rmSync, mkdirSync, readdirSync, statSync, readFileSync, writeFi
4
  import { join, relative } from 'node:path';
5
  import { createHash } from 'node:crypto';
6
  import { execSync } from 'node:child_process';
 
7
 
8
  const root = new URL('..', import.meta.url).pathname;
9
  const dist = join(root, 'dist');
@@ -15,6 +16,7 @@ mkdirSync(dist);
15
  cpSync(join(root, 'index.html'), join(dist, 'index.html'));
16
  cpSync(join(root, 'src'), join(dist, 'src'), { recursive: true });
17
  cpSync(join(root, 'public'), dist, { recursive: true });
 
18
 
19
  const vendor = join(dist, 'vendor', 'phonon-tts');
20
  mkdirSync(vendor, { recursive: true });
 
4
  import { join, relative } from 'node:path';
5
  import { createHash } from 'node:crypto';
6
  import { execSync } from 'node:child_process';
7
+ import { writeIcons } from './icons.mjs';
8
 
9
  const root = new URL('..', import.meta.url).pathname;
10
  const dist = join(root, 'dist');
 
16
  cpSync(join(root, 'index.html'), join(dist, 'index.html'));
17
  cpSync(join(root, 'src'), join(dist, 'src'), { recursive: true });
18
  cpSync(join(root, 'public'), dist, { recursive: true });
19
+ writeIcons(join(dist, 'icons'));
20
 
21
  const vendor = join(dist, 'vendor', 'phonon-tts');
22
  mkdirSync(vendor, { recursive: true });