diff options
Diffstat (limited to '')
-rw-r--r-- | updater/msirunner_linux.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/updater/msirunner_linux.go b/updater/msirunner_linux.go index cbb52cf6..6550025c 100644 --- a/updater/msirunner_linux.go +++ b/updater/msirunner_linux.go @@ -7,15 +7,17 @@ package updater import ( "fmt" + "io/ioutil" + "os" "os/exec" ) // This isn't a Linux program, yes, but having the updater package work across platforms is quite helpful for testing. -func runMsi(msiPath string) error { +func runMsi(msiPath string, userToken uintptr, env []string) error { return exec.Command("qarma", "--info", "--text", fmt.Sprintf("It seems to be working! Were we on Windows, ā%sā would be executed.", msiPath)).Run() } -func msiSaveDirectory() (string, error) { - return "/tmp/wireguard-update-test-msi-directory", nil +func msiTempFile() (*os.File, error) { + return ioutil.TempFile(os.TempDir(), "") } |