Skip to content

UpdateHandler

Sasso edited this page Jan 30, 2021 · 1 revision

Class for handling updates with git-based repositories.


Constructor(window)

Constructor of the UpdateHandler class.

Name Description
window XVLauncher.MainWindow
The window where the updater will be called.

CheckUpdateAvailability

Check if it there is a new release on GitLab repo.

Returns

true if there is an update available, false otherwise.


Compare(targetCommit)

Compares the currently stored commit id with a target commit id and returns a tuple of list with the old paths and new paths of changed files.

Name Description
targetCommit System.String
The target commit id using for comparing.

Returns


GetLatestRelease

Retrieves the latest github release informations.

Returns

last release download link, last commit name, last release tag.


Window

The instance of MainWindow that contains GUI elements which show update progress and status.