16 lines
371 B
Go
16 lines
371 B
Go
//go:build !windows
|
|
|
|
package main
|
|
|
|
import "os/exec"
|
|
|
|
// installerCommand exists only so updater.go compiles off Windows; applyWindows is
|
|
// never dispatched there (see updater_app.go).
|
|
func installerCommand(name, _ string) *exec.Cmd {
|
|
return exec.Command(name)
|
|
}
|
|
|
|
func startWindowsUpdateHandoff(name, dir, _ string) error {
|
|
return installerCommand(name, dir).Start()
|
|
}
|