Skip to content

Commit 92c0c49

Browse files
Merge pull request #37 from EnigmaticaModpacks/bugfix/curseforge-cdn-url
Correct ServerStarter URL path to CurseForge's latest CDN, fixes #36
2 parents 5fb7b63 + 42aff1a commit 92c0c49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modpack-uploader.ps1

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

301301
if ($ENABLE_SERVER_FILE_MODULE) {

0 commit comments

Comments
 (0)