diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-28 12:27:06 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-29 08:41:30 +0200 |
commit | e9682162ac908e9b9d81f3378faf8b38d1baa630 (patch) | |
tree | 1c3e6059569376c72336ba09f06e9a5ee5e1e833 /updater/msirunner_linux.go | |
parent | go.mod: use forked winio with no thirdparty deps (diff) | |
download | wireguard-windows-e9682162ac908e9b9d81f3378faf8b38d1baa630.tar.xz wireguard-windows-e9682162ac908e9b9d81f3378faf8b38d1baa630.zip |
updater: add initial skeleton
Diffstat (limited to 'updater/msirunner_linux.go')
-rw-r--r-- | updater/msirunner_linux.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/updater/msirunner_linux.go b/updater/msirunner_linux.go new file mode 100644 index 00000000..974c0883 --- /dev/null +++ b/updater/msirunner_linux.go @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: MIT + * + * Copyright (C) 2019 WireGuard LLC. All Rights Reserved. + */ + +package updater + +import ( + "fmt" + "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 { + 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 +} |