Files
Dylan M. Taylor 1bf696b08f packaging(linux): support co-installable nightly packages (#610)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 19:16:47 -06:00

4.6 KiB
Raw Permalink Blame History

AniCraft app icon

Creature: an engraved rabbit, AniCraft's mascot.

Style: an engraving-style portrait in the Crafting Apps template: a head-and-shoulders portrait on a full-bleed field, no frame or roundel, with the body running off the tile.

Palette (exactly three colours):

Colour Hex Used for
Ink #0b0b0c line work and contour
Paper #f2f1ee the figure (a neutral white, so the rabbit doesn't read as cream on the yellow)
AniCraft colour #dac604 the full-bleed field

Tile: viewBox="0 0 512 512", a rounded square with rx=112, the same tile as every Crafting App. The art is clipped 6 units inside it (a concentric rounded square, x=y=6, 500×500, rx=106), so a band of field colour runs round every edge where the rabbit runs off, as on the other icons. The padded files add Apple's transparent margin (tile = 824/1024 of the canvas); Windows and Linux use the tile edge to edge.

Provenance: the owner's original ArtCraft drawing, vectorised with trace.py. anicraft.svg is the canonical artwork. Licence: see LICENSE.txt.

Files

File What Used by
anicraft.svg master vector (traced at 1600 px, about 275 KB) source for everything below
anicraft-small.svg lighter vector (traced at 1000 px, about 170 KB) hicolor/scalable
anicraft-1024.png full tile, 1024 px docs, store listings
anicraft-padded-1024.png tile with Apple's margin, 1024 px landing pages, store listings
anicraft-macos-512.png tile with Apple's margin, 512 px runtime Dock icon on macOS (src/main.rs)
anicraft.ico Windows icon, 16 to 256 px build.rs (embedded in anicraft.exe)
hicolor/<size>/apps/ai.storyteller.anicraft.png Linux theme icons, 16 to 512 px; the 256 one is also the runtime icon on Windows and Linux, the 128 one the mark in Help › About (src/app.rs) Linux packaging, the Crafting Apps tables
hicolor/scalable/apps/ai.storyteller.anicraft.svg Linux scalable icon as above
trace.py traces the 2000 px source drawing into the master SVG regenerating the vectors
anicraft-nightly.png the Nightly tile, 256 px, deeper field Windows and Linux runtime and taskbar icon (src/platform.rs)
anicraft-nightly-1024.png the Nightly tile on Apple's margin, 1024 px macOS Dock icon of AniCraft Nightly
anicraft-nightly.ico Windows Nightly icon, 16 to 256 px build.rs (AniCraft Nightly.exe resources)
anicraft-nightly.icns macOS Nightly bundle icon packaging/macos/nightly.sh
nightly-provenance.json input and output hashes, the palette recipe, the container members the Nightly art's record

How it reaches each OS

  • macOS: the app sets the Dock / app-switcher icon at runtime (ViewportBuilder::with_icon).
  • Windows: build.rs embeds anicraft.ico with winresource (taskbar, Start menu, Explorer, Alt-Tab); the runtime icon covers the title bar.
  • Linux: the runtime icon covers the window; install hicolor/ to share/icons/ for launchers.

Regenerate

# From the 2000 px source drawing (needs numpy, Pillow, SciPy and vtracer; svgo 3.3.2 shrinks the paths):
python trace.py rabbit.webp master.svg 1600 4 1960 && npx svgo@3.3.2 -p 1 master.svg -o anicraft.svg
python trace.py rabbit.webp small.svg 1000 4 1960 && npx svgo@3.3.2 -p 1 small.svg -o anicraft-small.svg
# Every render (needs resvg on PATH and Python with Pillow):
scripts/icons.sh

Nightly channel

The Nightly derivatives keep the foreground artwork, alpha and Mac padding unchanged. Only the background contribution changes, from the stable yellow (#dac604) to the deeper gold (#8a7c03); every pixel is unmixed into field, paper and ink and re-rendered with the new field, so line work and antialiasing stay sharp. There is no letter badge or crescent: the window title, About and the Launcher also name the channel.

anicraft-nightly.png and the nine-frame ICO use the existing native sizes, each recoloured at its own resolution (the 20 and 40 px frames are averaged down from the 256 px master, which the theme folder has no render of). anicraft-nightly-1024.png and the eleven-slot ICNS come from the real padded Mac 1024 master, not an upscale. The stable files are never recoloured.

nightly-provenance.json records the input and output hashes, the palette recipe, the generator's hash and the container members. The generator is not committed: it writes all four files from the committed masters in one pass (python3 anicraft-nightly-icons.py <repo>), and re-running it on unchanged inputs reproduces the recorded hashes byte for byte.