mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-12-05 16:55:29 -06:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user