mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2026-06-04 00:56:54 +00:00
First pass at rewriting the HTTPD
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user