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

@@ -4,7 +4,6 @@
use App\Enums\Auth\Permissions;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\View;
abstract class AdminToolController extends Controller
@@ -31,7 +30,7 @@ final public static function getAllTools(): array
GameNewsController::class,
FileManagerController::class,
VersioningController::class,
LauncherMessageController::class,
LauncherController::class,
LogViewerController::class,
MatchConfigurationController::class,
UsersController::class,
@@ -41,7 +40,8 @@ final public static function getAllTools(): array
];
}
public static function getNotificationText(): ?string {
public static function getNotificationText(): ?string
{
return null;
}
@@ -65,7 +65,8 @@ final public static function getNeededPermission(): string
return static::$neededPermission->value;
}
final protected function overrideTitle(string $title): void {
final protected function overrideTitle(string $title): void
{
View::share('title', $title);
}
}