16 lines
517 B
Batchfile
16 lines
517 B
Batchfile
@echo off
|
|
rem gitdesk launcher for Windows.
|
|
rem Run it from inside a repo folder (or pass a path): gitdesk / gitdesk C:\path\to\repo
|
|
rem Needs Python 3.9+ and git. On first run it offers to install the "textual" package.
|
|
setlocal
|
|
set "PY="
|
|
where py >nul 2>&1 && set "PY=py -3"
|
|
if not defined PY where python >nul 2>&1 && set "PY=python"
|
|
if not defined PY (
|
|
echo Python 3 was not found. Install it from https://www.python.org/downloads/
|
|
pause
|
|
exit /b 1
|
|
)
|
|
%PY% "%~dp0gitdesk.py" %*
|
|
if errorlevel 1 pause
|