mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
Initial commit, still very rough around the edges
This commit is contained in:
parent
fdac45a349
commit
b179afe20a
1 changed files with 27 additions and 0 deletions
27
findcurl.cmd
Normal file
27
findcurl.cmd
Normal file
|
@ -0,0 +1,27 @@
|
|||
@echo off
|
||||
rem This script breaks when the version gets updated.
|
||||
rem Can someone else work a way around that?
|
||||
rem This script does not handle failure to make a directory
|
||||
rem nor a failure to download the curl.cab
|
||||
rem It also assumes that curl is downloaded to the users Desktop
|
||||
|
||||
set DLPAGE=http://skanthak.homepage.t-online.de/download
|
||||
set CURLVERSION=curl-7.64.1.cab
|
||||
set LINK=%DLPAGE%/%CURLVERSION%
|
||||
rem Check if curl exists
|
||||
echo Fetching %LINK%
|
||||
|
||||
curl --version 2>NUL 1>&2
|
||||
|
||||
if %ERRORLEVEL == 9009 (
|
||||
mkdir internal\curl >NUL
|
||||
explorer %LINK%
|
||||
rem we should wait until the file is downloaded, because explorer returns straight away
|
||||
"%SystemRoot%\system32\expand.exe" "%USERPROFILE%\Desktop\%CURLVERSION%" /F:* internal\curl
|
||||
|
||||
rem Add to path
|
||||
PATH=%PATH%;%~dp0\internal\curl
|
||||
) ELSE (
|
||||
echo "Found curl, continuing"
|
||||
)
|
||||
|
Loading…
Reference in a new issue