-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch-windows.bat
More file actions
55 lines (43 loc) · 1.96 KB
/
launch-windows.bat
File metadata and controls
55 lines (43 loc) · 1.96 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
@echo off
title Presto Player Support Assistant
echo.
echo Presto Player Support Assistant
echo ================================
echo.
set SCRIPT_DIR=%~dp0
set REPOS_DIR=%SCRIPT_DIR%.repos
if not exist "%REPOS_DIR%" mkdir "%REPOS_DIR%"
:: --- Auto-update or clone repositories ---
echo Syncing repositories...
cd /d "%SCRIPT_DIR%"
git pull --ff-only 2>nul || echo Could not update support repo (offline?)
if exist "%REPOS_DIR%\presto-player" (
echo Updating presto-player...
cd /d "%REPOS_DIR%\presto-player" && git pull --ff-only 2>nul || echo Could not update presto-player
) else (
echo Cloning presto-player...
gh repo clone prestomade/presto-player "%REPOS_DIR%\presto-player" -- --depth 1 2>nul || echo Could not clone presto-player
)
if exist "%REPOS_DIR%\presto-player-pro" (
echo Updating presto-player-pro...
cd /d "%REPOS_DIR%\presto-player-pro" && git pull --ff-only 2>nul || echo Could not update presto-player-pro
) else (
echo Cloning presto-player-pro...
gh repo clone prestomade/presto-player-pro "%REPOS_DIR%\presto-player-pro" -- --depth 1 2>nul || echo Could not clone presto-player-pro
)
if exist "%REPOS_DIR%\presto-player-support.wiki" (
echo Updating wiki...
cd /d "%REPOS_DIR%\presto-player-support.wiki" && git pull --ff-only 2>nul || echo Could not update wiki
) else (
echo Cloning wiki...
git clone --depth 1 "https://github.com/prestomade/presto-player-support.wiki.git" "%REPOS_DIR%\presto-player-support.wiki" 2>nul || echo Wiki not available
)
echo Done.
echo.
:: --- Launch Claude Code ---
cd /d "%SCRIPT_DIR%"
set EXTRA_DIRS=
if exist "%REPOS_DIR%\presto-player" set EXTRA_DIRS=%EXTRA_DIRS% --add-dir "%REPOS_DIR%\presto-player"
if exist "%REPOS_DIR%\presto-player-pro" set EXTRA_DIRS=%EXTRA_DIRS% --add-dir "%REPOS_DIR%\presto-player-pro"
if exist "%REPOS_DIR%\presto-player-support.wiki" set EXTRA_DIRS=%EXTRA_DIRS% --add-dir "%REPOS_DIR%\presto-player-support.wiki"
claude %EXTRA_DIRS%