diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-06 09:46:10 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-06 15:55:02 +0200 |
commit | 568528c747afe3ae991b0340d15cd6a897fd5c9d (patch) | |
tree | dd08e02b053b0cf27a75ed2e428701b1799e3bf1 /updater/msirunner_linux.go | |
parent | ui: do tray click action when popup clicked (diff) | |
download | wireguard-windows-568528c747afe3ae991b0340d15cd6a897fd5c9d.tar.xz wireguard-windows-568528c747afe3ae991b0340d15cd6a897fd5c9d.zip |
updater: move into manager
Diffstat (limited to 'updater/msirunner_linux.go')
-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(), "") } |