selfupdate

package
v0.0.0-...-ccadce5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFileMode = 0755
View Source
const SignedFileSuffix = ".sig"
View Source
const WindowsOS = "windows"
View Source
const WindowsServiceUpdater = "updateSpeedsnitch.bat"

Variables

This section is empty.

Functions

func CopyFileOnLinux

func CopyFileOnLinux(sourcePath, targetPath string) error

func UpdateIfNeeded

func UpdateIfNeeded(
	currentVersion, configVersion, downloadURL string,
	verifySignature bool,
) (bool, error)

UpdateIfNeeded checks current version and config version and if different downloads the version from config If returns true, update occurred and process should be restarted, if false, check err, but if err is nil all is okay

func VerifySignature

func VerifySignature(downloadURL, downloadFileBase, downloadFile, workingDir string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL