Skip to content

Commit

Permalink
Setup MariaDB redistributable fallback URL
Browse files Browse the repository at this point in the history
Their API server is currently shitting itself
  • Loading branch information
Cyberboss committed Jul 5, 2024
1 parent 630e5a4 commit 44b30d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build/Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<!-- Update this frequently with dotnet runtime patches. MAJOR MUST MATCH ABOVE! -->
<TgsDotnetRedistUrl>https://download.visualstudio.microsoft.com/download/pr/751d3fcd-72db-4da2-b8d0-709c19442225/33cc492bde704bfd6d70a2b9109005a0/dotnet-hosting-8.0.6-win.exe</TgsDotnetRedistUrl>
<TgsMariaDBRedistVersion>10.11.8</TgsMariaDBRedistVersion>
<!-- Only have this uncommented if the mariadb servers are shitting the bed, update if the version updates -->
<TgsMariaDBFallbackRedist>https://mirror.its.dal.ca/mariadb//mariadb-10.11.8/winx64-packages/mariadb-10.11.8-winx64.msi</TgsMariaDBFallbackRedist>
<TgsYarnVersion>1.22.21</TgsYarnVersion>
</PropertyGroup>
</Project>
10 changes: 9 additions & 1 deletion build/package/winget/prepare_installer_input_artifacts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ try
try
{
Invoke-WebRequest -Uri $redistUrl -OutFile artifacts/hosting-bundle.exe
Invoke-WebRequest -Uri $dbRedistUrl -OutFile artifacts/mariadb.msi
try
{
Invoke-WebRequest -Uri $dbRedistUrl -OutFile artifacts/mariadb.msi
}
catch
{
$dbRedistUrl = $versionXML.Project.PropertyGroup.TgsMariaDBFallbackRedist
Invoke-WebRequest -Uri $dbRedistUrl -OutFile artifacts/mariadb.msi
}
} finally {
$ProgressPreference = $previousProgressPreference
}
Expand Down

0 comments on commit 44b30d6

Please sign in to comment.