Skip to content

Commit 1ada870

Browse files
committed
more media -> edge renames
1 parent 8519c77 commit 1ada870

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

automation/modpack-uploader.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ function Update-FileLinkInServerFiles {
318318
$idPart2 = Remove-LeadingZero -text $idPart2
319319
# CurseForge replaces whitespace in filenames with + in their CDN urls
320320
$sanitizedClientZipName = $CLIENT_ZIP_NAME.Replace(" ", "+")
321-
$curseForgeCdnUrl = "https://media.forgecdn.net/files/$idPart1/$idPart2/$sanitizedClientZipName.zip"
322-
$content = (Get-Content -Path $SERVER_SETUP_CONFIG_PATH) -replace "https://media.forgecdn.net/files/\d+/\d+/.*.zip", $curseForgeCdnUrl
321+
$curseForgeCdnUrl = "https://edge.forgecdn.net/files/$idPart1/$idPart2/$sanitizedClientZipName.zip"
322+
$content = (Get-Content -Path $SERVER_SETUP_CONFIG_PATH) -replace "https://edge.forgecdn.net/files/\d+/\d+/.*.zip", $curseForgeCdnUrl
323323
[System.IO.File]::WriteAllLines(($SERVER_SETUP_CONFIG_PATH | Resolve-Path), $content)
324324

325325
if ($ENABLE_SERVER_FILE_MODULE) {

0 commit comments

Comments
 (0)