message
This commit is contained in:
parent
ceb426e1c0
commit
a9ac9d0894
1 changed files with 12 additions and 10 deletions
|
|
@ -368,16 +368,6 @@ class OpenRAGTUI(App):
|
||||||
|
|
||||||
def on_mount(self) -> None:
|
def on_mount(self) -> None:
|
||||||
"""Initialize the application."""
|
"""Initialize the application."""
|
||||||
# Check if running on native Windows and exit
|
|
||||||
if self.platform_detector.is_native_windows():
|
|
||||||
print("\n" + "=" * 60)
|
|
||||||
print("⚠️ Native Windows Not Supported")
|
|
||||||
print("=" * 60)
|
|
||||||
print(self.platform_detector.get_wsl_recommendation())
|
|
||||||
print("=" * 60 + "\n")
|
|
||||||
self.exit(1)
|
|
||||||
return
|
|
||||||
|
|
||||||
# Check for runtime availability and show appropriate screen
|
# Check for runtime availability and show appropriate screen
|
||||||
if not self.container_manager.is_available():
|
if not self.container_manager.is_available():
|
||||||
notify_with_diagnostics(
|
notify_with_diagnostics(
|
||||||
|
|
@ -507,6 +497,18 @@ def copy_compose_files(*, force: bool = False) -> None:
|
||||||
|
|
||||||
def run_tui():
|
def run_tui():
|
||||||
"""Run the OpenRAG TUI application."""
|
"""Run the OpenRAG TUI application."""
|
||||||
|
# Check for native Windows before launching TUI
|
||||||
|
from .utils.platform import PlatformDetector
|
||||||
|
platform_detector = PlatformDetector()
|
||||||
|
|
||||||
|
if platform_detector.is_native_windows():
|
||||||
|
print("\n" + "=" * 60)
|
||||||
|
print("⚠️ Native Windows Not Supported")
|
||||||
|
print("=" * 60)
|
||||||
|
print(platform_detector.get_wsl_recommendation())
|
||||||
|
print("=" * 60 + "\n")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
app = None
|
app = None
|
||||||
try:
|
try:
|
||||||
# Keep bundled assets aligned with the packaged versions
|
# Keep bundled assets aligned with the packaged versions
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue