webview

package
v0.0.0-...-937e3a5 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package webview fetches and installs a Microsoft WebView version from an Upload ID.

Index

Constants

This section is empty.

Variables

View Source
var ErrExtractFail = errors.New("download information extraction failed")
View Source
var ErrInstallerNotFound = errors.New("webview installer target not found in resource")
View Source
var ErrResourceNotFound = errors.New("webview installer resource not found")

Functions

func Install

func Install(pfx *wine.Prefix, name string) *wine.Cmd

Install runs the given WebView installer file within the Wineprefix with the appropiate arguments.

Types

type Download

type Download struct {
	ID      string
	Version string
	URL     string
}

func GetDownload

func GetDownload(updateID string) (*Download, error)

GetDownload retrieves a WebView2 installer from the Microsoft Update Catalog for the given updateID.

func (*Download) Extract

func (d *Download) Extract(r io.ReaderAt, dst io.Writer) error

Extract uses the given ReaderAt, a file source of the Download's URL and extracts the WebView installer to the given dst.

Jump to

Keyboard shortcuts

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