Move file distribution to Gitea, deploy server on mivanchenko.de

Drops the standalone fileserver systemd unit from setup-server.sh in
favor of Gitea's already-public raw-file serving. Adds VR (Vivecraft)
and quest (FTB Quests) mod docs, the DH/Chunky server-side crash
warning, and documents the real deployment target (always-on homelab
box, not a venue-local machine).
This commit is contained in:
Mykhailo Ivanchenko
2026-10-23 15:01:00 +02:00
parent a243213b47
commit cd694a67b6
5 changed files with 116 additions and 57 deletions
+15 -6
View File
@@ -2,16 +2,18 @@
# Prism fork), seeds a persistent offline account, drops in the pre-built
# modpack instance, and launches straight into it on the LAN server.
#
# Host this file via: python3 -m http.server 8000 (alongside modpack.zip)
# Participants run: irm http://<host-ip>:8000/install.ps1 | iex
# Hosted from Gitea (git.mivanchenko.de), not a local http.server — see HOSTING.md.
# Participants run: irm https://git.mivanchenko.de/mivanchenko/mc-lan-party/raw/branch/main/install.ps1 | iex
# ---- EDIT ME before hosting ----
$HostUrl = "http://192.168.1.50:8000"
$HostUrl = "https://git.mivanchenko.de/mivanchenko/mc-lan-party/raw/branch/main"
$ModpackUrl = "$HostUrl/modpack.zip"
$InstanceName = "LANParty"
$ServerAddr = "192.168.1.50:25565"
$ServerAddr = "minecraft.mivanchenko.de:25565" # DNS name, not a raw IP — repoint the A record instead of rebuilding modpack.zip. See HOSTING.md "Moving the server to the venue".
# ---------------------------------
$ErrorActionPreference = "Stop" # fail loudly instead of printing an error and silently continuing
$InstallDir = Join-Path $env:USERPROFILE "mc-lan-party"
New-Item -ItemType Directory -Force -Path $InstallDir | Out-Null
Set-Location $InstallDir
@@ -69,8 +71,15 @@ Write-Host "==> Offline account '$Nick' ready (UUID $Uuid)"
New-Item -ItemType Directory -Force -Path "instances" | Out-Null
if (-not (Test-Path (Join-Path "instances" $InstanceName))) {
Write-Host "==> Downloading modpack from $ModpackUrl"
Invoke-WebRequest -Uri $ModpackUrl -OutFile "modpack.zip"
Expand-Archive -Path "modpack.zip" -DestinationPath "instances" -Force
try {
Invoke-WebRequest -Uri $ModpackUrl -OutFile "modpack.zip"
Expand-Archive -Path "modpack.zip" -DestinationPath "instances" -Force
} catch {
Write-Host "==> FAILED to fetch/extract the modpack from $ModpackUrl" -ForegroundColor Red
Write-Host " $($_.Exception.Message)" -ForegroundColor Red
Write-Host " (Fjord Launcher itself installed fine at $InstallDir\app — this just means modpack.zip isn't being served yet.)"
exit 1
}
Write-Host "==> Modpack installed to instances\$InstanceName"
} else {
Write-Host "==> Instance already present, skipping download"