-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwin-run.bat
More file actions
49 lines (44 loc) · 1.02 KB
/
Copy pathwin-run.bat
File metadata and controls
49 lines (44 loc) · 1.02 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
cd /d "%~dp0"
title Subtext
where uv >nul 2>nul
if errorlevel 1 (
echo uv is not installed.
echo Install it from: https://docs.astral.sh/uv/getting-started/installation/
pause
exit /b 1
)
if not exist ".venv" (
echo Setting up environment with uv sync...
uv sync
if errorlevel 1 (
echo Setup failed.
pause
exit /b 1
)
)
echo.
echo [1] Desktop app - full local workflow with AI analysis
echo [2] Private web service - localhost service for browser/Tailscale use
echo.
set /p pick="Choose 1 or 2: "
if "%pick%"=="2" (
echo.
echo Starting private web service...
echo Local check: http://127.0.0.1:8000
echo For phone access, pair it with Tailscale Serve.
echo.
uv run python run_web.py
) else (
if not "%pick%"=="1" (
echo Unknown option. Starting Desktop app.
echo.
)
echo Launching Subtext Desktop app...
uv run python run.py
)
if errorlevel 1 (
echo.
echo Application exited with an error.
pause
)