From 1811cf0c2122304aaa601080ec9a8895beee5181 Mon Sep 17 00:00:00 2001 From: f0e <7321764+f0e@users.noreply.github.com> Date: Sun, 11 Jul 2021 22:07:06 +1000 Subject: [PATCH] Update installer.bat --- installer.bat | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/installer.bat b/installer.bat index c8cb69c..44f9aa9 100644 --- a/installer.bat +++ b/installer.bat @@ -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" @@ -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!