diff --git a/public-dev/monochrome-192x192.png b/public-dev/monochrome-192x192.png new file mode 100644 index 00000000..e7ba8292 Binary files /dev/null and b/public-dev/monochrome-192x192.png differ diff --git a/public-dev/monochrome-512x512.png b/public-dev/monochrome-512x512.png new file mode 100644 index 00000000..403cfad5 Binary files /dev/null and b/public-dev/monochrome-512x512.png differ diff --git a/public-dev/monochrome-64x64.png b/public-dev/monochrome-64x64.png new file mode 100644 index 00000000..94212c42 Binary files /dev/null and b/public-dev/monochrome-64x64.png differ diff --git a/public-staging/monochrome-192x192.png b/public-staging/monochrome-192x192.png new file mode 100644 index 00000000..e7ba8292 Binary files /dev/null and b/public-staging/monochrome-192x192.png differ diff --git a/public-staging/monochrome-512x512.png b/public-staging/monochrome-512x512.png new file mode 100644 index 00000000..403cfad5 Binary files /dev/null and b/public-staging/monochrome-512x512.png differ diff --git a/public-staging/monochrome-64x64.png b/public-staging/monochrome-64x64.png new file mode 100644 index 00000000..94212c42 Binary files /dev/null and b/public-staging/monochrome-64x64.png differ diff --git a/scripts/generate-pwa-icons.ts b/scripts/generate-pwa-icons.ts index b40827cc..4c807052 100644 --- a/scripts/generate-pwa-icons.ts +++ b/scripts/generate-pwa-icons.ts @@ -1,4 +1,4 @@ -import { rm, writeFile } from 'node:fs/promises' +import { copyFile, rm, writeFile } from 'node:fs/promises' import process from 'node:process' import { resolve } from 'pathe' import type { PngOptions, ResizeOptions } from 'sharp' @@ -209,6 +209,14 @@ async function generatePWAIcons(folders: string[], icons: Icons) { apple, ico, }, svgLogo, folders[0]) + + // copy monochrome png files to public dev and staging folders + await Promise.all(folders.slice(1).map(async (folder) => { + await Promise.all(transparent.sizes.map(size => copyFile( + resolve(folders[0], `monochrome-${size}x${size}.png`), + resolve(folder, `monochrome-${size}x${size}.png`), + ))) + })) } console.log('Generating Elk PWA Icons...')