updater

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadUpdate

func DownloadUpdate(download string, progress chan<- float64) (string, updateStatus)

downloadUpdate from site, put it in temporary file

func ExtractZip

func ExtractZip(zipPath io.ReaderAt, size int64, dest string) (string, error)

func InstallUpdate

func InstallUpdate(downloadDir, appDir string) updateStatus

install update from temp directory

Types

type Update

type Update struct {
	Version   string
	Changelog string
	Download  string
}

func CheckForUpdate

func CheckForUpdate(currentVersion, platform string) (*Update, updateStatus)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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