Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
v2.1.2 - Bump murse version, clean up old murse if it exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
brysondev committed Sep 22, 2022
1 parent 017b52c commit e4b76eb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions of_install.bat
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,30 @@ if not exist %STEAM_REG_PATH%\NUL > nul 2>&1(
)
)

if exist %MURSE_PATH% (
cd %TEMP%
@RD /S /Q %TEMP%\murse
)

if not exist "%MURSE_PATH%murse.exe" (
echo Installing Murse CLI...
echo.
cd %TEMP%
md "murse"
cd "murse"
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://git.sr.ht/~welt/murse/refs/download/v0.3.0/murse-v0.3.0-windows-386.zip', 'murse.zip')"
powershell -Command "(New-Object Net.WebClient).DownloadFile('https://git.sr.ht/~welt/murse/refs/download/v0.3.1/murse-v0.3.1-windows-386.zip', 'murse.zip')"
Call :UnZipFile "%MURSE_PATH%" "%MURSE_PATH%murse.zip"
)
)
goto verify

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:verify
echo Verifying Murse exists...
cd /D "%MURSE_PATH%"
murse.exe -h

if errorlevel 1 (
echo Murse inaccessable. Please run this script as ADMIN!
echo Murse inaccessable. Please run this script as ADMIN! (Or ensure your antivirus didn't delete the file...)
goto exitmain
)

Expand All @@ -102,6 +108,7 @@ if exist %vbs% del /f /q %vbs%
cscript //nologo %vbs%
if exist %vbs% del /f /q %vbs%
goto verify

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:installOF
echo.
Expand Down

0 comments on commit e4b76eb

Please sign in to comment.