Deliver launcher updates from signed CI release zips

Replace the manually set launcher version with releases uploaded from the
CI zip (exes, launcher-manifest.json and launcher-manifest.json.sig).

- New "Launcher" admin tool (renamed from Launcher Message): upload a
  release, switch the current one, delete old ones, set the launcher message
- Uploads are validated: manifest rules, size + SHA-256 of every exe, and
  the ECDSA manifest signature when LAUNCHER_UPDATE_PUBLIC_KEYS is set
- The same zip, manifest or version cannot be published twice; only the
  newest 5 releases are kept and the current one is never removed
- Serve the current release to the launcher at /launcher/{file},
  byte-for-byte and uncached, with range support for resumed downloads
- /download-launcher serves the newest framework build; the legacy
  /api/v1/launcher-version returns the current release version
- Remove the launcher version from the Versioning tool
- Fix the file input button highlighting when hovering the whole input
This commit is contained in:
Shaggy84675
2026-11-14 14:15:22 +01:00
parent b90cd6fa9f
commit 8bb72bb2b7
25 changed files with 1160 additions and 181 deletions

View File

@@ -5,18 +5,11 @@
use App\Enums\Auth\Permissions;
use App\Enums\Game\ExperienceEventType;
use App\Http\Requests\Api\Admin\Tools\SaveCurrencyConfiguration;
use App\Http\Requests\Api\Admin\Tools\SaveLauncherMessageRequest;
use App\Http\Requests\Api\Admin\Tools\SaveMatchConfigurationRequest;
use App\Http\Requests\Api\Admin\Tools\SaveMatchmakingConfigurationRequest;
use App\Http\Requests\Api\Admin\Tools\SaveVersioningRequest;
use App\Models\Admin\CurrencyMultipliers;
use App\Models\Admin\ExperienceMultipliers;
use App\Models\Admin\LauncherMessage;
use App\Models\Admin\MatchmakingSettings;
use App\Models\Admin\Versioning\CurrentCatalogVersion;
use App\Models\Admin\Versioning\CurrentContentVersion;
use App\Models\Admin\Versioning\CurrentGameVersion;
use App\Models\Admin\Versioning\LauncherVersion;
use Session;
class MatchConfigurationController extends AdminToolController
@@ -24,6 +17,7 @@ class MatchConfigurationController extends AdminToolController
protected static string $name = 'Match Configuration';
protected static string $description = 'Manage Events & Game Modes';
protected static string $iconComponent = 'icons.globe';
protected static Permissions $neededPermission = Permissions::FILE_UPLOAD;
@@ -51,7 +45,7 @@ public function saveExperience(SaveMatchConfigurationRequest $request)
Session::flash('alert-success', 'Configuration saved successfully.');
} catch (\Exception $e) {
Session::flash('alert-error', 'Configuration could not be saved, something went wrong: ' . $e->getMessage());
Session::flash('alert-error', 'Configuration could not be saved, something went wrong: '.$e->getMessage());
}
return back();
@@ -69,13 +63,14 @@ public function saveCurrency(SaveCurrencyConfiguration $request)
Session::flash('alert-success', 'Configuration saved successfully.');
} catch (\Exception $e) {
Session::flash('alert-error', 'Configuration could not be saved, something went wrong: ' . $e->getMessage());
Session::flash('alert-error', 'Configuration could not be saved, something went wrong: '.$e->getMessage());
}
return back();
}
public function saveMatchmaking(SaveMatchmakingConfigurationRequest $request) {
public function saveMatchmaking(SaveMatchmakingConfigurationRequest $request)
{
$matchmakingConfig = MatchmakingSettings::get();
try {
@@ -83,12 +78,10 @@ public function saveMatchmaking(SaveMatchmakingConfigurationRequest $request) {
$matchmakingConfig->save();
Session::flash('alert-success', 'Matchmaking configuration saved successfully.');
}
catch (\Exception $e) {
Session::flash('alert-error', 'Matchmaking configuration could not be saved, something went wrong: ' . $e->getMessage());
} catch (\Exception $e) {
Session::flash('alert-error', 'Matchmaking configuration could not be saved, something went wrong: '.$e->getMessage());
}
return back();
}
}
}