diff options
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 +} |