| 1 | //go:build !windows |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import ( |
| 6 | "os/exec" |
| 7 | |
| 8 | "reasonix/internal/repair" |
| 9 | ) |
| 10 | |
| 11 | // installerCommand exists only so updater.go compiles off Windows; applyWindows is |
| 12 | // never dispatched there (see updater_app.go). |
| 13 | func installerCommand(name, _ string) *exec.Cmd { |
| 14 | return exec.Command(name) |
| 15 | } |
| 16 | |
| 17 | func startWindowsUpdateHandoff(name, _, dir, _ string, _ *repair.UpdateTransaction) error { |
| 18 | return installerCommand(name, dir).Start() |
| 19 | } |
| 20 | |
| 21 | func startWindowsVersionedUpdateHandoff(name, _, dir, _, _ string) error { |
| 22 | return installerCommand(name, dir).Start() |
| 23 | } |
| 24 |