feat: add portable NexusOS CLI and packaging
This commit is contained in:
@@ -5,9 +5,11 @@ import tempfile
|
||||
import os
|
||||
import re
|
||||
|
||||
_ROOT = Path(__file__).resolve().parents[2]
|
||||
UNDERLAY_FILE = _ROOT / "assets/themes/NexusOS-icons-src/nexus-underlay.svg"
|
||||
RING_FILE = _ROOT / "assets/themes/NexusOS-icons-src/nexus-underlay-ring.svg"
|
||||
from ..nexus_config import settings
|
||||
|
||||
_ROOT = settings.project_root
|
||||
UNDERLAY_FILE = settings.assets_dir / "themes/NexusOS-icons-src/nexus-underlay.svg"
|
||||
RING_FILE = settings.assets_dir / "themes/NexusOS-icons-src/nexus-underlay-ring.svg"
|
||||
ICONS_OUT = Path.home() / ".icons" / "NexusOS"
|
||||
SIZES = [16, 22, 24, 32, 48, 64, 128]
|
||||
|
||||
@@ -18,7 +20,7 @@ _ALLOWED_ROOTS = [
|
||||
"/opt",
|
||||
str(Path.home() / ".local/share/icons"),
|
||||
str(Path.home() / ".icons"),
|
||||
str(_ROOT / "assets"),
|
||||
str(settings.assets_dir),
|
||||
]
|
||||
|
||||
_UNDERLAY_FALLBACK = """\
|
||||
|
||||
Reference in New Issue
Block a user