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 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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.