File size: 870 Bytes
1bfa806
db3606c
 
1bfa806
 
db3606c
1bfa806
db3606c
 
1bfa806
 
 
 
 
 
 
 
 
 
 
db3606c
 
1bfa806
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""Lightweight entrypoint for the optional FCC desktop shell."""

import sys
from collections.abc import Sequence
from pathlib import Path

from free_claude_code.cli.desktop_assets import export_app_icon


def launch(argv: Sequence[str] | None = None) -> None:
    """Export installer assets or launch the supported native tray adapter."""

    args = tuple(sys.argv[1:] if argv is None else argv)
    if len(args) == 2 and args[0] == "--export-icon":
        export_app_icon(Path(args[1]))
        return
    if args:
        print("Usage: fcc-desktop [--export-icon PATH]", file=sys.stderr)
        raise SystemExit(2)
    if sys.platform not in {"darwin", "win32"}:
        print("FCC Desktop is supported on Windows and macOS.", file=sys.stderr)
        raise SystemExit(1)

    from free_claude_code.cli.desktop_tray import launch as launch_tray

    launch_tray()