20 lines
495 B
Go
20 lines
495 B
Go
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
|
|||
|
|
// SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
|
||
|
|
|
||
|
|
package updater
|
||
|
|
|
||
|
|
import (
|
||
|
|
"os"
|
||
|
|
"runtime"
|
||
|
|
"syscall"
|
||
|
|
)
|
||
|
|
|
||
|
|
// defaultSyscallExec replaces the current process image; it never
|
||
|
|
// returns on success.
|
||
|
|
func defaultSyscallExec(path string, argv []string) error {
|
||
|
|
return syscall.Exec(path, argv, os.Environ())
|
||
|
|
}
|
||
|
|
|
||
|
|
func goos() string { return runtime.GOOS }
|
||
|
|
func goarch() string { return runtime.GOARCH }
|