package darwinpkg
import "golang.org/x/build/internal/installer/darwinpkg"
Package darwinpkg encodes the process of building a macOS PKG installer from the given Go toolchain .tar.gz binary archive.
Index ¶
- func ConstructInstaller(_ context.Context, workDir, tgzPath string, opt InstallerOptions) (pkgPath string, _ error)
- type InstallerOptions
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.
Source Files ¶
darwinpkg.go
- Version
- v0.0.0-20250421191922-3619c213cff3 (latest)
- Published
- Apr 21, 2025
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 3 months ago –
Tools for package owners.