fix(windows): make collector fallback rust-primary

This commit is contained in:
igor04091968
2026-06-11 06:18:47 +03:00
parent 4d21b7a32e
commit 1c710dfe94
10 changed files with 699 additions and 34 deletions
+5 -1
View File
@@ -53,7 +53,11 @@ if command -v pwsh >/dev/null 2>&1; then
[void][System.Management.Automation.Language.Parser]::ParseFile((Resolve-Path "windows/ActivityWatch.Windows.Common.psm1"),[ref]$null,[ref]$null)
[void][System.Management.Automation.Language.Parser]::ParseFile((Resolve-Path "windows/ActivityWatch.Windows.Common.psd1"),[ref]$null,[ref]$null)
'
pwsh -NoLogo -NoProfile -File windows/aw-collector-guard.ps1 -SelfTest >/dev/null
if [[ -f windows/aw-collector-guard.ps1 ]]; then
pwsh -NoLogo -NoProfile -File windows/aw-collector-guard.ps1 -SelfTest >/dev/null
else
echo "windows/aw-collector-guard.ps1 absent; Rust collector guard is the primary runtime."
fi
else
echo "pwsh not found, skipping."
fi