diff --git a/components/lazautoupdate/latest_stable/open_ssl.pas b/components/lazautoupdate/latest_stable/open_ssl.pas index d6f8ddaf2..7d8b5aabe 100644 --- a/components/lazautoupdate/latest_stable/open_ssl.pas +++ b/components/lazautoupdate/latest_stable/open_ssl.pas @@ -5,7 +5,7 @@ unit open_ssl; interface uses - // Built-in: fphttpclient + // Built-in 'fphttpclient' replaces 'lazautoupdate_httpclient' for general use Classes, SysUtils,lazautoupdate_httpclient,LazFileUtils,FileUtil,zipper; function CheckForOpenSSL:Boolean; @@ -15,9 +15,11 @@ implementation const {$ifdef win64} cOpenSSLURL = 'http://packages.lazarus-ide.org/openssl-1.0.2j-x64_86-win64.zip'; + cAltOpenSSLURL = 'http://indy.fulgan.com/SSL/openssl-1.0.2j-i386-win32.zip'; {$endif} {$ifdef win32} cOpenSSLURL = 'http://packages.lazarus-ide.org/openssl-1.0.2j-i386-win32.zip'; +cAltOpenSSLURL = 'http://indy.fulgan.com/SSL/openssl-1.0.2j-x64_86-win64.zip'; {$endif} Var FHTTPClient:TFPHttpClient; @@ -44,7 +46,14 @@ begin ZipFile := ExtractFilePath(ParamStr(0)) + ExtractFileName(cOpenSSLURL); try FHTTPClient.Get(cOpenSSLURL, ZipFile); + If (FHTTPClient.ResponseStatusCode <> 200) then + begin + ZipFile := ExtractFilePath(ParamStr(0)) + ExtractFileName(cAltOpenSSLURL); + FHTTPClient.Get(cOpenSSLURL, ZipFile); + end; except + // Just leave + Exit; end; if FileExistsUTF8(ZipFile) then diff --git a/components/lazautoupdate/latest_stable/testapp/testapp.lps b/components/lazautoupdate/latest_stable/testapp/testapp.lps index add2314f6..81c419c49 100644 --- a/components/lazautoupdate/latest_stable/testapp/testapp.lps +++ b/components/lazautoupdate/latest_stable/testapp/testapp.lps @@ -26,24 +26,34 @@ - + + - - - + + + + + - + + + + + + + + - - + + - - + + @@ -53,58 +63,58 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -112,139 +122,96 @@ - - - - - - - - - - - + + + + - + - + - + - + - + - + - + - + - + - + - + - + - - - - + + + + - + - + - + - - + + - + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/components/lazautoupdate/latest_stable/ulazautoupdate.pas b/components/lazautoupdate/latest_stable/ulazautoupdate.pas index 41de22aa1..25a35a0c0 100644 --- a/components/lazautoupdate/latest_stable/ulazautoupdate.pas +++ b/components/lazautoupdate/latest_stable/ulazautoupdate.pas @@ -50,9 +50,11 @@ const // [updatepath,projectname,filename] // C_GITHUBFILE_URL = 'https://raw.github.com/%s/%s/master/%s/%s'; C_GITHUBFILE_URL = 'https://raw.github.com/%s/%s/%s/%s/%s'; - C_GITHUBFILE_URL_UPDATES = 'https://raw.github.com/%s/%s/%s/%s/%s/%s'; // https://raw.github.com////some_directory/file // GitHubUserName,GitHubProjectName,updatepath,filename + + C_GITHUBFILE_URL_UPDATES = 'https://raw.github.com/%s/%s/%s/%s/%s/%s'; + C_TLazAutoUpdateComponentVersion = '0.2.3'; C_LAUTRayINI = 'lauimport.ini'; diff --git a/components/lazautoupdate/latest_stable/updates/lazautoupdate.zip b/components/lazautoupdate/latest_stable/updates/lazautoupdate.zip index 93ced9964..c520295db 100644 Binary files a/components/lazautoupdate/latest_stable/updates/lazautoupdate.zip and b/components/lazautoupdate/latest_stable/updates/lazautoupdate.zip differ