installer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureEditorWithModules

func EnsureEditorWithModules(
	platform string,
	unityInstaller UnityInstaller,
	packageInstaller packageinstaller.PackageInstaller,
	editorRelease *release.EditorRelease,
	moduleIDs []string,
	force bool,
	skipEditor bool,
) error

EnsureEditorWithModules installs (if missing) an editor version and list of modules.

func HasEditorAndModules

func HasEditorAndModules(installer UnityInstaller, editorVersion string, moduleIDs []string) (bool, error)

HasEditorAndModules returns true if the given editor version and all given module IDs are installed.

Types

type UnityInstaller

type UnityInstaller interface {
	io.Closer

	InstallEditor(platform string, installer packageinstaller.PackageInstaller, spec *release.EditorRelease) error
	InstallModule(installer packageinstaller.PackageInstaller, editorVersion string, spec *release.ModuleRelease) error

	CheckEditorVersion(editorVersion string) (bool, []release.ModuleRelease, error)
}

UnityInstaller represents a Unity Installer which can install editors and editor modules.

func NewSimpleInstaller

func NewSimpleInstaller(logger logr.Logger, editorDir, tempDir string, client *http.Client) (UnityInstaller, error)

NewSimpleInstaller creates a Unity Installer which downloads packages to a temporary directory every install.

Jump to

Keyboard shortcuts

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