oto/apps/runner/assets/package/chocolatey/tools/chocolateybeforemodify.ps1
toki 86afabb3eb refactor(runner): 런타임 패키지를 앱 하위로 이동한다
독립 control plane 구성을 위해 기존 Dart CLI/runtime을 runner 앱 경계로 옮기고, 후속 client/core/root 작업을 같은 마일스톤 task group에 연결한다.
2026-06-05 06:34:45 +09:00

16 lines
No EOL
840 B
PowerShell

# This runs before upgrade or uninstall.
# Use this file to do things like stop services prior to upgrade or uninstall.
# NOTE: It is an anti-pattern to call chocolateyUninstall.ps1 from here. If you
# need to uninstall an MSI prior to upgrade, put the functionality in this
# file without calling the uninstall script. Make it idempotent in the
# uninstall script so that it doesn't fail when it is already uninstalled.
# NOTE: For upgrades - like the uninstall script, this script always runs from
# the currently installed version, not from the new upgraded package version.
# Chocolatey package arguments
$installPath = Join-Path $env:LOCALAPPDATA "com.toki-labs.oto"
$otoExePath = Join-Path $installPath "oto.exe"
# Step 1: Execute 'oto scheduler -t cli'
Write-Host "Executing 'oto scheduler -t'..."
& $otoExePath scheduler -t