Add files via upload

pull/61/head
Matthew Clark 7 months ago committed by GitHub
parent 1227263c1a
commit 8e1a2ffd16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -23,8 +23,11 @@ DEL "MediCat_Installer.bat" 2>nul
cls
echo.Updating Medicat Installer. Please wait while the new file is downloaded.
curl http://url.medicatusb.com/installerupdate -o Medicat_Installer.bat -q -L
powershell -c "$data = curl https://api.github.com/repos/mon5termatt/medicat_installer/git/refs/tag -UseBasicParsing | ConvertFrom-Json; $data[-1].ref -replace 'refs/tags/', '' | Out-File -Encoding 'UTF8' -FilePath './ver.ini'"
set /p ver= < ver.ini
set ver=%ver:~-4%
del ver.ini /Q
curl https://github.com/mon5termatt/medicat_installer/releases/download/%remver%/Medicat_Installer.bat -o Medicat_Installer.bat -q -L
REM Check if the download was successful
IF NOT EXIST "Medicat_Installer.bat" (
echo ERROR: Failed to download the new file.

Loading…
Cancel
Save