darwinpkg

package
v0.0.0-...-006a6ae Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package darwinpkg encodes the process of building a macOS PKG installer from the given Go toolchain .tar.gz binary archive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructInstaller

func ConstructInstaller(_ context.Context, workDir, tgzPath string, opt InstallerOptions) (pkgPath string, _ error)

ConstructInstaller constructs an installer for the provided Go toolchain .tar.gz binary archive using workDir as a working directory, and returns the output path.

It's intended to run on a macOS system, with Xcode tools available in $PATH.

Types

type InstallerOptions

type InstallerOptions struct {
	GOARCH string // The target GOARCH.
	// MinMacOSVersion is the minimum required system.version.ProductVersion.
	// For example, "11" for macOS 11 Big Sur, "10.15" for macOS 10.15 Catalina, etc.
	MinMacOSVersion string
}

InstallerOptions holds options for constructing the installer.

Jump to

Keyboard shortcuts

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