Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit a3d26f0

Browse files
committed
[[ HTTPS ]] Download prebuilts via https
This patch temporarily adds the `-k` option to the `curl` command to skip certificate verification due to an unable to get local issuer certificate SSL error.
1 parent 455946a commit a3d26f0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

builder/builder_utilities.livecodescript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@ command builderEnsureZip pZipfile, pURL
558558
builderEnsureFolderForFile pZipfile
559559

560560
builderLog "message", "Downloading zip file:" && pZipfile
561-
get shell(merge("curl -o '[[pZipfile]]' '[[pUrl]]'"))
561+
get shell(merge("curl -k -o '[[pZipfile]]' '[[pUrl]]'"))
562562
if the result is not zero then
563563
builderLog "error", "Failed to download zip file:" && it
564564
throw "failure"

prebuilt/fetch-libraries.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SUBPLATFORMS_ios=(iPhoneSimulator6.1 iPhoneSimulator7.1 iPhoneSimulator8.2 iPhon
2020
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
2121
FETCH_DIR="${SCRIPT_DIR}/fetched"
2222
EXTRACT_DIR="${SCRIPT_DIR}"
23-
URL="http://downloads.livecode.com/prebuilts"
23+
URL="https://downloads.livecode.com/prebuilts"
2424

2525
# Versions
2626
source "${SCRIPT_DIR}/scripts/lib_versions.inc"
@@ -52,7 +52,7 @@ function fetchLibrary {
5252

5353
# Download using an HTTP client of some variety
5454
if $(which curl 1>/dev/null 2>/dev/null) ; then
55-
curl --silent "${URL}/${NAME}.tar.bz2" -o "${FETCH_DIR}/${NAME}.tar.bz2"
55+
curl -k "${URL}/${NAME}.tar.bz2" -o "${FETCH_DIR}/${NAME}.tar.bz2"
5656
elif $(which wget 1>/dev/null 2>/dev/null) ; then
5757
wget "${URL}/${NAME}.tar.bz2" -O "${FETCH_DIR}/${NAME}.tar.bz2"
5858
else

tests/lcs/ext/ext-urls.livecodescript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ on TestMergExtURL
4545
local tURL
4646
put builderMergExtUrl(tVersion,tEdition) into tURL
4747

48-
get shell("curl -s -o /dev/null -IL -w" && quote & "%{http_code}" & quote && tURL)
48+
get shell("curl -k -s -o /dev/null -IL -w" && quote & "%{http_code}" & quote && tURL)
4949
TestAssert "mergExt" && tEdition && "url is valid", it is 200
5050
end repeat
5151
end TestMergExtURL
@@ -59,7 +59,7 @@ on TestTSNetURL
5959
local tURL
6060
put builderTSNetUrl(tVersion, tEdition) into tURL
6161

62-
get shell("curl -s -o /dev/null -IL -w" && quote & "%{http_code}" & quote && tURL)
62+
get shell("curl -k -s -o /dev/null -IL -w" && quote & "%{http_code}" & quote && tURL)
6363
TestAssert "tsNet" && tEdition && "url is valid", it is 200
6464
end repeat
6565
end TestTSNetURL

0 commit comments

Comments
 (0)