mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 12:21:15 +00:00
Create setenv.cmd
This commit is contained in:
parent
338537e659
commit
e39c460837
1 changed files with 19 additions and 0 deletions
19
setenv.cmd
Normal file
19
setenv.cmd
Normal file
|
@ -0,0 +1,19 @@
|
|||
@echo off
|
||||
REM
|
||||
where git 2> NUL: || call :addGitToPath
|
||||
SET PATH=C:\Program Files\Android\Android Studio\jre\bin;C:\Program Files\Java\jdk1.8.0_241\bin;"%GIT_INSTALL_DIR%\bin";"%GIT_INSTALL_DIR%\cmd";%PATH%
|
||||
REM
|
||||
REM End of Script.
|
||||
REM
|
||||
goto :eof
|
||||
|
||||
|
||||
:addGitToPath
|
||||
REM
|
||||
IF DEFINED GIT_INSTALL_DIR goto :eof
|
||||
IF NOT EXIST "%ProgramFiles%\Git\cmd\git.exe" goto :eof
|
||||
REM
|
||||
SET GIT_INSTALL_DIR=%ProgramFiles%\Git
|
||||
echo [INFO] Set GIT_INSTALL_DIR to [%GIT_INSTALL_DIR%] ...
|
||||
REM
|
||||
goto :eof
|
Loading…
Reference in a new issue