updater

package
v0.1.0-rc.15 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package updater downloads verified native installers into a temporary directory.

Index

Constants

View Source
const VersionFile = "pencode-version"

Variables

This section is empty.

Functions

func Installation

func Installation(executable string) (root, version string, err error)

func Launch

func Launch(stage string) error

Launch starts a helper outside the installation so Windows can release all package files.

func RunHelper

func RunHelper() (bool, error)

RunHelper runs before graphics, resource loading, or backend startup.

Types

type Client

type Client struct {
	HTTP   *http.Client
	GitHub string
}

func NewClient

func NewClient() Client

func (Client) Check

func (c Client) Check(ctx context.Context, current string) (Release, error)

Check finds the newest eligible version with a published installer and checksums.

func (Client) Stage

func (c Client) Stage(ctx context.Context, root, executable string, r Release) (stage string, err error)

Stage checks the installer digest without touching the running installation.

type Release

type Release struct {
	Tag       string
	URL       string
	Checksums string
	Name      string
}

Jump to

Keyboard shortcuts

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