build(generate-icons): exit with clear error on non-darwin (P3-27)

This commit is contained in:
ZacharyZhang-NY committed 2026-04-16 22:55:30 -04:00
1 parent a2ceba5c33
commit 08968e8331
1 file changed
+8
+8
View File
@@ -13,8 +13,16 @@ import io
import os
import shutil
import subprocess
import sys
from pathlib import Path
# ── macOS-only build helper (uses iconutil and Homebrew cairo) ────────
if sys.platform != "darwin":
sys.exit(
"generate-icons.py is a macOS-only build helper (requires iconutil + "
"Homebrew cairo). Icons are pre-generated and committed under assets/."
)
# ── Ensure cairo library is discoverable on macOS (Homebrew) ──────────
for _lib_dir in ("/opt/homebrew/opt/cairo/lib", "/usr/local/opt/cairo/lib"):
if Path(_lib_dir).exists():