Browse Source

Merge branch 'v0.5' of github.com:VCVRack/Rack into v0.5

tags/v0.5.1
Andrew Belt 6 years ago
parent
commit
1de7cdb7bb
3 changed files with 8 additions and 2 deletions
  1. +2
    -0
      Makefile
  2. +4
    -2
      dep/Makefile
  3. +2
    -0
      src/util/request.cpp

+ 2
- 0
Makefile View File

@@ -145,6 +145,8 @@ ifeq ($(ARCH), win)
cp dep/bin/libsamplerate-0.dll dist/Rack/ cp dep/bin/libsamplerate-0.dll dist/Rack/
cp dep/bin/libzip-5.dll dist/Rack/ cp dep/bin/libzip-5.dll dist/Rack/
cp dep/bin/librtaudio.dll dist/Rack/ cp dep/bin/librtaudio.dll dist/Rack/
cp dep/bin/libcrypto-1_1-x64.dll dist/Rack/
cp dep/bin/libssl-1_1-x64.dll dist/Rack/
mkdir -p dist/Rack/plugins mkdir -p dist/Rack/plugins
cp -R plugins/Fundamental/dist/Fundamental dist/Rack/plugins/ cp -R plugins/Fundamental/dist/Fundamental dist/Rack/plugins/
# Make ZIP # Make ZIP


+ 4
- 2
dep/Makefile View File

@@ -54,7 +54,8 @@ ifeq ($(ARCH),win)
libcurl = bin/libcurl-4.dll libcurl = bin/libcurl-4.dll
libzip = bin/libzip-5.dll libzip = bin/libzip-5.dll
rtmidi = bin/librtmidi-4.dll rtmidi = bin/librtmidi-4.dll
rtaudio = bin/librtaudio-6.dll
rtaudio = bin/librtaudio.dll
openssl = bin/libssl-1_1-x64.dll
endif endif


# Library configuration # Library configuration
@@ -126,7 +127,8 @@ $(libcurl): $(openssl)
$(UNTAR) curl-7.56.0.tar.gz $(UNTAR) curl-7.56.0.tar.gz
cd curl-7.56.0 && ./configure --prefix="$(LOCAL)" \ cd curl-7.56.0 && ./configure --prefix="$(LOCAL)" \
--disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual \ --disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-manual \
--without-zlib --without-ca-bundle --without-ca-fallback --without-libpsl --without-libmetalink --without-libssh2 --without-librtmp --without-winidn --without-libidn2 --without-nghttp2 --with-ssl="$(LOCAL)"
--without-zlib --without-libpsl --without-libmetalink --without-libssh2 --without-librtmp --without-winidn --without-libidn2 --without-nghttp2 \
--without-ca-bundle --with-ca-fallback --with-ssl="$(LOCAL)"
$(MAKE) -C curl-7.56.0 $(MAKE) -C curl-7.56.0
$(MAKE) -C curl-7.56.0 install $(MAKE) -C curl-7.56.0 install




+ 2
- 0
src/util/request.cpp View File

@@ -80,6 +80,7 @@ json_t *requestJson(RequestMethod method, std::string url, json_t *dataJ) {
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, reqStr); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, reqStr);


std::string resText; std::string resText;
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writeStringCallback); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writeStringCallback);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &resText); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &resText);


@@ -132,6 +133,7 @@ bool requestDownload(std::string url, std::string filename, float *progress) {
curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, xferInfoCallback); curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, xferInfoCallback);
curl_easy_setopt(curl, CURLOPT_XFERINFODATA, progress); curl_easy_setopt(curl, CURLOPT_XFERINFODATA, progress);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);


info("Downloading %s", url.c_str()); info("Downloading %s", url.c_str());
CURLcode res = curl_easy_perform(curl); CURLcode res = curl_easy_perform(curl);


Loading…
Cancel
Save