mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-02 19:42:51 +08:00
feat: add verified console self-update for release packages
Check official GitHub Releases, require SHA256SUMS, safely extract and swap release-package code, roll back on failed health checks, and persist task state across restarts. Docker and source deployments stay check-only. Add updater tests, route security tests and five-language admin copy.
This commit is contained in:
1 parent
ae6788a796
commit
2de2e23fd3
32 files changed
+3573
-16
No files matched your search
@@ -22,6 +22,7 @@ import type { PluginRegistry } from "../plugins/registry.js";
|
||||
import { PluginRuntime } from "../plugins/runtime.js";
|
||||
import { createPluginRuntimeRouter } from "../plugins/runtime-router.js";
|
||||
import { parseHiddenHostParts } from "../shared/skin-chrome.js";
|
||||
import type { UpdateService } from "../updater/update-service.js";
|
||||
|
||||
export interface WebServerOptions {
|
||||
port: number;
|
||||
@@ -37,6 +38,8 @@ export interface WebServerOptions {
|
||||
logger: Logger;
|
||||
nextVisitorNumber?: () => number;
|
||||
visitorCount?: () => number;
|
||||
updateService?: UpdateService;
|
||||
restartAfterUpdate?: () => void;
|
||||
}
|
||||
|
||||
export interface WebServer {
|
||||
@@ -301,6 +304,8 @@ export function createWebServer(options: WebServerOptions): WebServer {
|
||||
skinRegistry: options.skinRegistry,
|
||||
pluginRegistry: options.pluginRegistry,
|
||||
pluginRuntime,
|
||||
updateService: options.updateService,
|
||||
restartAfterUpdate: options.restartAfterUpdate,
|
||||
version: options.version,
|
||||
logFile: options.logFile,
|
||||
startedAt,
|
||||
|
||||
Reference in new issue
Block a user