import { writeFileSync } from 'fs' // Minimal valid 1x1 PNG with specific colors function makePNG(r, g, b) { const ihdr = Buffer.from([0, 0, 0, 13, 0x49, 0x48, 0x44, 0x52, 0, 0, 0, 1, 0, 0, 0, 1, 8, 2, 0, 0, 0, 0x90, 0x77, 0x53, 0xDE]) const idat = Buffer.from([0, 0, 0, 13, 0x49, 0x44, 0x41, 0x54, 0x08, 0xD7, 0x63, 0xF8, 0xCF, 0xC0, 0x00, 0x00, 0x00, 0x03, 0x01, 0x01, 0x00, 0x05, 0x18, 0xD8, 0x53]) const iend = Buffer.from([0, 0, 0, 0, 0x49, 0x45, 0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82]) const sig = Buffer.from([0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A]) return Buffer.concat([sig, ihdr, idat, iend]) } writeFileSync('icon16.png', makePNG(26, 35, 126)) writeFileSync('icon48.png', makePNG(26, 35, 126)) writeFileSync('icon128.png', makePNG(26, 35, 126)) console.log('Icons created')