First pass at rewriting the HTTPD

This commit is contained in:
2026-05-19 23:17:43 -04:00
parent 533b5b52b8
commit c421970ce0
157 changed files with 4962 additions and 82519 deletions
+2 -2
View File
@@ -29,10 +29,10 @@ function Download-IfMissing($Url, $Target) {
Invoke-WebRequest -Uri $Url -OutFile $Target -TimeoutSec 600
}
# Resolve version (explicit > cached > latest)
# Resolve version (explicit > local debug asset cache > latest)
$manifest = Invoke-RestMethod -Uri $ManifestUrl -TimeoutSec 30
if ([string]::IsNullOrWhiteSpace($Version)) {
$cachedFile = Join-Path $ProjectRoot "src/main/resources/httpd/assets/.minecraft-version"
$cachedFile = Join-Path $ProjectRoot "minecraft-assets/version.txt"
if (Test-Path $cachedFile) {
$Version = (Get-Content $cachedFile -Raw).Trim()
} else {