Implement reversible Sentinel beta foundation
All checks were successful
OfficeCom Sentinel Client / validate-client (push) Successful in 23s
OfficeCom Sentinel Client / build-client-windows (push) Successful in 51s

This commit is contained in:
OfficeCom Codex
2026-07-30 01:05:30 +02:00
parent 58ad77242f
commit c3ca95dfa5
21 changed files with 464 additions and 18 deletions

View File

@@ -1,6 +1,8 @@
[CmdletBinding()]
param(
[string]$ManifestUrl = "https://gitea.officecom.cloud/officecom/oc-sentinel/raw/main/release/stable/version.json",
[string]$ManifestUrl = "",
[ValidateSet("stable", "beta")]
[string]$ReleaseChannel = "stable",
[string]$WebhookUrl = "",
[string]$SecretValue = "",
[switch]$RunInitialStatusScan
@@ -112,6 +114,20 @@ function Get-OCSentinelArtifact {
Initialize-OCSentinelTls
if ($ReleaseChannel -eq "stable" -and -not [string]::IsNullOrWhiteSpace($env:ReleaseChannel)) {
$requestedChannel = $env:ReleaseChannel.Trim().ToLowerInvariant()
if ($requestedChannel -notin @("stable", "beta")) {
throw "ReleaseChannel must be stable or beta."
}
$ReleaseChannel = $requestedChannel
}
if ([string]::IsNullOrWhiteSpace($ManifestUrl)) {
$ManifestUrl = "https://gitea.officecom.cloud/officecom/oc-sentinel/raw/main/release/$ReleaseChannel/version.json"
}
Write-Host "OCSentinel release channel: $ReleaseChannel"
$installRoot = Join-Path $env:ProgramFiles "OCSentinel"
$updaterPath = Join-Path $installRoot "scripts\update-ocsentinel.ps1"
$monitorPath = Join-Path $installRoot "scripts\run-ocsentinel-monitor.ps1"