-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlauncher.bat
More file actions
34 lines (28 loc) · 1.01 KB
/
Copy pathlauncher.bat
File metadata and controls
34 lines (28 loc) · 1.01 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
@echo off
setlocal
cd /d "%~dp0"
:: A fresh source checkout does not contain the portable runtime or tools.
:: Hand off to the one-click installer, which opens a new launcher process
:: after setup completes.
if not exist "%~dp0python\python.exe" goto :first_time_setup
if not exist "%~dp0bin\ffmpeg\bin\ffmpeg.exe" goto :first_time_setup
if not exist "%~dp0bin\rubberband\rubberband.exe" goto :first_time_setup
if not exist "%~dp0bin\espeak-ng\libespeak-ng.dll" goto :first_time_setup
:: PATH
set "PATH=%CD%\python;%CD%\python\Scripts;%CD%\python\DLLs;%PATH%"
set "PATH=%CD%\bin\ffmpeg\bin;%CD%\bin\rubberband;%PATH%"
echo.
echo ================================================
echo LocalSoundsAPI - Launcher
echo ================================================
echo.
"%~dp0python\python.exe" launcher.py
pause
exit /b %ERRORLEVEL%
:first_time_setup
echo.
echo LocalSoundsAPI needs its portable runtime and audio tools.
echo Starting the one-click setup now...
echo.
call "%~dp0install.bat" %*
exit /b %ERRORLEVEL%