Versions in this module Expand all Collapse all v0 v0.1.0 Mar 5, 2026 Changes in this version + const EnvAdHocSign + const EnvAppName + const EnvAutoSign + const EnvBundleID + const EnvCamera + const EnvCodeSignIdentity + const EnvDebug + const EnvFiles + const EnvForceDirectExecution + const EnvForceLaunchServices + const EnvKeepBundle + const EnvLocation + const EnvMicrophone + const EnvNetwork + const EnvNoRelaunch + const EnvResetPermissions + const EnvSandbox + const EnvTestIntegration + const EnvVersion + func AllMacgoEnvVars() []string + func CalculateFileSHA256(filePath string) (string, error) + func CleanAppName(name string) string + func ClearAllMacgoEnv() + func CompareFileSHA256(filePath, expectedHash string) (bool, error) + func CopyFile(src, dst string) error + func DirExists(path string) bool + func EnsureDir(path string, perm os.FileMode) error + func ExtractAppNameFromPath(execPath string) string + func FileExists(path string) bool + func GetBool(key string) bool + func GetBundleContentsPath(bundlePath string) string + func GetBundleEntitlementsPath(bundlePath string) string + func GetBundleExecutablePath(bundlePath, execName string) string + func GetBundleID(bundlePath string) string + func GetBundleInfoPlistPath(bundlePath string) string + func GetEnabledPermissions() []string + func GetInt(key string, defaultValue int) int + func GetLaunchMode() string + func GetMacgoEnvSnapshot() map[string]string + func GetPermissionFlags() map[string]bool + func GetString(key, defaultValue string) string + func GetStringSlice(key string) []string + func HasAnyPermissionFlags() bool + func InferBundleID(appName string) string + func IsAppBundle(path string) bool + func IsDebugEnabled() bool + func IsInAppBundle() bool + func IsRelaunchDisabled() bool + func IsResetPermissionsEnabled() bool + func LimitAppNameLength(name string, maxLength int) string + func RestoreEnv(saved map[string]string) + func SafeWriteFile(filename string, data []byte, perm os.FileMode) error + func SaveEnv(keys []string) map[string]string + func SetBool(key string, value bool) error + func ValidateAppName(name string) error + func ValidateBundleID(bundleID string) error + type MacOSVersion struct + Major int + Minor int + Patch int + Raw string + func GetMacOSVersion() (MacOSVersion, error) + func MustGetMacOSVersion() MacOSVersion + func ParseMacOSVersion(version string) (MacOSVersion, error) + func (v MacOSVersion) IsAtLeast(major, minor, patch int) bool + func (v MacOSVersion) IsSequoiaOrLater() bool + func (v MacOSVersion) IsSonomaOrLater() bool + func (v MacOSVersion) IsVenturaOrLater() bool + func (v MacOSVersion) ReleaseName() string + func (v MacOSVersion) String() string + func (v MacOSVersion) UseSystemSettings() bool