build(generate-icons): exit with clear error on non-darwin (P3-27)
This commit is contained in:
1 parent
a2ceba5c33
commit
08968e8331
1 file changed
+8
@@ -13,8 +13,16 @@ import io
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
from pathlib import Path
|
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) ──────────
|
# ── Ensure cairo library is discoverable on macOS (Homebrew) ──────────
|
||||||
for _lib_dir in ("/opt/homebrew/opt/cairo/lib", "/usr/local/opt/cairo/lib"):
|
for _lib_dir in ("/opt/homebrew/opt/cairo/lib", "/usr/local/opt/cairo/lib"):
|
||||||
if Path(_lib_dir).exists():
|
if Path(_lib_dir).exists():
|
||||||
|
|||||||
Reference in new issue
Block a user