Skip to content

Commit

Permalink
Update installer.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
f0e committed Jul 11, 2021
1 parent ac9c14c commit 1811cf0
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ echo 4.2. Installing vs-frameblender
echo.

if exist "%plugins_folder%\vs-frameblender-x64.dll" (
goto end
goto weighting
)

powershell Invoke-WebRequest "https://github.com/f0e/vs-frameblender/releases/download/v1/vs-frameblender-x64.dll" -OutFile "%temp%\vs-frameblender-x64.dll"
Expand All @@ -227,6 +227,32 @@ move %temp%\vs-frameblender-x64.dll "%plugins_folder%\vs-frameblender-x64.dll">n

pause

:weighting
cls
echo 4.3. Installing weighting.py
echo.

if exist "%homepath%\AppData\Roaming\Python\Python39\site-packages" (
set python_packages_folder="%homepath%\AppData\Roaming\Python\Python39\site-packages"
) else (
echo Couldn't find Python's site-packages folder, try manually installing weighting.py
echo.
pause
exit
)

set python_packages_folder=%python_packages_folder:"=%

if exist "%python_packages_folder%\weighting.py" (
goto end
)

powershell Invoke-WebRequest "https://raw.githubusercontent.com/f0e/blur/master/weighting.py" -OutFile "%temp%\weighting.py"

move %temp%\weighting.py "%python_packages_folder%\weighting.py">nul

pause

:end
cls
echo Dependencies fully installed!
Expand Down

0 comments on commit 1811cf0

Please sign in to comment.