blob: cbb52cf6a7bc68b64f20e567b38bb8838f3e3c7f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
}
|