Files
storyforge/deploy/storyforge-windows-asr-http/register-tasks.ps1
kris a048bd26b1
Some checks failed
StoryForge CI / Baseline checks (push) Has been cancelled
StoryForge CI / Backend tests (push) Has been cancelled
StoryForge CI / Web tests (push) Has been cancelled
feat: move asr to windows and disable local model
2026-04-06 10:20:39 +08:00

23 lines
626 B
PowerShell

$ErrorActionPreference = "Stop"
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$runScript = Join-Path $scriptDir "run.ps1"
$launchAsrScript = Join-Path $scriptDir "launch-asr.ps1"
$bridgeScript = Join-Path $scriptDir "bridge-cloud.ps1"
$tasks = @(
@{
Name = "StoryForgeWindowsAsr"
Script = $launchAsrScript
},
@{
Name = "StoryForgeWindowsAsrCloudBridge"
Script = $bridgeScript
}
)
foreach ($task in $tasks) {
schtasks /Create /F /SC ONLOGON /RL HIGHEST /TN $task.Name /TR "powershell.exe -NoProfile -ExecutionPolicy Bypass -File `"$($task.Script)`""
schtasks /Run /TN $task.Name
}