-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart-remote.bat
More file actions
61 lines (53 loc) · 2.93 KB
/
start-remote.bat
File metadata and controls
61 lines (53 loc) · 2.93 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
@echo off
:: studio///diskrot -- Start (Remote)
:: Double-click this file to install or update studio///diskrot in remote mode.
:: First run: installs prerequisites (WSL, Docker, NVIDIA drivers) and launches.
:: Subsequent runs: pulls latest images and restarts the stack.
::
:: Only starts postgres, redis, studio-backend, and studio-ui -- the minimum
:: services required to communicate with a remote studio///diskrot instance.
chcp 65001 >nul 2>&1
:: Get ESC character for ANSI codes
for /f %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
set "C=%ESC%[36m"
set "BC=%ESC%[96m"
set "M=%ESC%[35m"
set "BM=%ESC%[95m"
set "W=%ESC%[97m"
set "DK=%ESC%[90m"
set "N=%ESC%[0m"
cls
echo.
echo %DK% ──────────────────────────────────────────────────────────%N%
echo.
echo %BC% ██████╗ ██╗███████╗██╗ ██╗██████╗ ██████╗ ████████╗%N%
echo %C% ██╔══██╗██║██╔════╝██║ ██╔╝██╔══██╗██╔═══██╗╚══██╔══╝%N%
echo %BM% ██║ ██║██║███████╗█████╔╝ ██████╔╝██║ ██║ ██║ %N%
echo %M% ██║ ██║██║╚════██║██╔═██╗ ██╔══██╗██║ ██║ ██║ %N%
echo %BC% ██████╔╝██║███████║██║ ██╗██║ ██║╚██████╔╝ ██║ %N%
echo %C% ╚═════╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝ %N%
echo.
echo %W% s t u d i o///diskrot%N%
echo %DK% [ remote ]%N%
echo.
echo %DK% ──────────────────────────────────────────────────────────%N%
echo %DK% diskrot.com · 2026%N%
echo %DK% ──────────────────────────────────────────────────────────%N%
echo.
:: Loading bar
powershell -NoProfile -Command "$h=[char]0x2593;Write-Host -NoNewline ' ';1..50|%%{Write-Host -NoNewline -ForegroundColor DarkGray $h;Start-Sleep -Milliseconds 12};Write-Host"
echo.
:: Check for admin rights
net session >nul 2>&1
if %errorlevel% neq 0 (
echo %BC%▸%N% requesting administrator privileges...
echo.
powershell -Command "Start-Process -Verb RunAs -FilePath '%~f0'"
exit /b
)
:: Set remote compose file and run the installer
set "COMPOSE_FILE=docker-compose.remote.yml"
echo %BC%▸%N% initializing...
echo.
powershell -ExecutionPolicy Bypass -File "%~dp0installer\install.ps1"
pause