askrobots / dbbasic-browser
Public
A desktop browser with x402 built in: when a page asks for payment, it pays in stablecoins and shows the content.
danq9
site icons (favicons) in tabs, address bar suggestions and the bookmarks panel
7249579
15 hours, 50 minutes ago
History
make-icons.sh · 760 bytes · 17 lines
| 1 | #!/usr/bin/env bash |
| 2 | # Regenerate every icon from assets/icon.svg. Needs ImageMagick (`magick`); the .icns step |
| 3 | # needs macOS `iconutil`. Outputs: assets/icon.png (1024), icon.icns (macOS), icon.ico (Windows). |
| 4 | set -euo pipefail |
| 5 | cd "$(dirname "$0")/../assets" |
| 6 | magick -background none -density 384 icon.svg -resize 1024x1024 icon.png |
| 7 | magick icon.png -define icon:auto-resize=256,128,64,48,32,16 icon.ico |
| 8 | if command -v iconutil >/dev/null; then |
| 9 | rm -rf icon.iconset && mkdir icon.iconset |
| 10 | for s in 16 32 128 256 512; do |
| 11 | magick icon.png -resize ${s}x${s} icon.iconset/icon_${s}x${s}.png |
| 12 | magick icon.png -resize $((s*2))x$((s*2)) icon.iconset/icon_${s}x${s}@2x.png |
| 13 | done |
| 14 | iconutil -c icns icon.iconset -o icon.icns |
| 15 | rm -rf icon.iconset |
| 16 | fi |
| 17 | ls -la icon.* |