-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
87 lines (76 loc) · 2.1 KB
/
Copy pathinstall.bat
File metadata and controls
87 lines (76 loc) · 2.1 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
@echo off
REM Claude Trip Computer - Windows Installation Wrapper
REM Version: 0.13.7
REM
REM This batch file locates Git Bash and runs the installation script
REM
setlocal enabledelayedexpansion
echo.
echo ================================================
echo Claude Trip Computer - Windows Installation
echo Version 0.13.7
echo ================================================
echo.
REM Check for Git Bash in common locations
set "GITBASH="
REM Check each path individually to avoid parentheses parsing issues
if exist "C:\Program Files\Git\bin\bash.exe" (
set "GITBASH=C:\Program Files\Git\bin\bash.exe"
goto :found_bash
)
if exist "C:\Program Files (x86)\Git\bin\bash.exe" (
set "GITBASH=C:\Program Files (x86)\Git\bin\bash.exe"
goto :found_bash
)
if exist "%LOCALAPPDATA%\Programs\Git\bin\bash.exe" (
set "GITBASH=%LOCALAPPDATA%\Programs\Git\bin\bash.exe"
goto :found_bash
)
if exist "C:\Git\usr\bin\bash.exe" (
set "GITBASH=C:\Git\usr\bin\bash.exe"
goto :found_bash
)
if exist "C:\msys64\usr\bin\bash.exe" (
set "GITBASH=C:\msys64\usr\bin\bash.exe"
goto :found_bash
)
:not_found
echo [ERROR] Git Bash not found
echo.
echo Git for Windows is required. Please install from:
echo https://git-scm.com/download/win
echo.
echo After installation, run this script again.
echo.
pause
exit /b 1
:found_bash
echo [OK] Found Git Bash: %GITBASH%
echo.
REM Get the directory where this batch file is located
set "SCRIPT_DIR=%~dp0"
REM Convert Windows path to Unix path for bash
set "UNIX_PATH=%SCRIPT_DIR:\=/%"
if "!UNIX_PATH:~1,1!"==":" (
set "DRIVE=!UNIX_PATH:~0,1!"
set "UNIX_PATH=/!DRIVE!!UNIX_PATH:~2!"
)
REM Run the bash installation script
echo Running installation script...
echo.
"%GITBASH%" -c "cd '%UNIX_PATH%' && bash ./install.sh"
if %ERRORLEVEL% neq 0 (
echo.
echo [ERROR] Installation failed
echo.
pause
exit /b %ERRORLEVEL%
)
echo.
echo ================================================
echo Installation completed successfully!
echo ================================================
echo.
echo Please restart Claude Code to activate the status line.
echo.
pause