Skip to content

Commit

Permalink
Fix: Add additional fallback URL for php download (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage authored Nov 17, 2024
1 parent 93fec53 commit c1cf23a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
#define MyAppURL "https://github.com/RikudouSage/GogDownloader"
#define MyAppExeName "GogDownloader.exe"
#define PhpLink "https://windows.php.net/downloads/releases/php-8.3.13-nts-Win32-vs16-x64.zip"
#define PhpLinkFallback "https://files.catbox.moe/mzsohg.zip"
#define PhpSha "4214c13f1c66a7b98f088d8d26b18e35117228b853ba4394479d2d3df693c3b3"
#define PhpLinkFallback "https://files.catbox.moe/lxzfkv.zip"
#define PhpLinkFallback2 "https://download.rikudou.dev/php.zip"
#define PhpSha "1c69f1e93f49fc94fffae90ffadc0a5982a52db7150bdfa1b89b0717c3a94b99"
#define VcRedistLink "https://aka.ms/vs/17/release/vc_redist.x64.exe"

[Setup]
Expand Down Expand Up @@ -259,6 +260,16 @@ begin
end;
end;
if not DownloadSuccess then
begin
try
DownloadTemporaryFile('{#PhpLinkFallback2}', 'php.zip', '{#PhpSha}', nil);
DownloadSuccess := True;
except
DownloadSuccess := False;
end;
end;
if not DownloadSuccess then
begin
MsgBox(ExpandConstant('{cm:DownloadPhpFailed}'), mbError, MB_OK);
Expand Down

0 comments on commit c1cf23a

Please sign in to comment.