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.
Click to show internal directories.
Click to hide internal directories.