Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
34 lines
895 B
Go
34 lines
895 B
Go
//go:build windows
|
|
|
|
package computer
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
func resolveInstalledComputerDriver() string {
|
|
localAppData := os.Getenv("LOCALAPPDATA")
|
|
userProfile := os.Getenv("USERPROFILE")
|
|
candidates := make([]string, 0, 5)
|
|
if localAppData != "" {
|
|
candidates = append(candidates,
|
|
filepath.Join(localAppData, "Programs", "Cua", "cua-driver", "bin", "cua-driver.exe"),
|
|
filepath.Join(localAppData, "Programs", "Cua", "cua-driver.exe"),
|
|
filepath.Join(localAppData, "cua-driver", "cua-driver.exe"),
|
|
)
|
|
}
|
|
if userProfile != "" {
|
|
candidates = append(candidates,
|
|
filepath.Join(userProfile, ".cua-driver", "packages", "current", "cua-driver.exe"),
|
|
filepath.Join(userProfile, ".local", "bin", "cua-driver.exe"),
|
|
)
|
|
}
|
|
for _, candidate := range candidates {
|
|
if info, err := os.Stat(candidate); err == nil && !info.IsDir() {
|
|
return candidate
|
|
}
|
|
}
|
|
return ""
|
|
}
|