Documentation
¶
Overview ¶
Package apps enumerates installed macOS applications and classifies each app binary's CPU architecture (Intel / Universal / Apple Silicon), so the GUI can flag Intel-only apps that run under Rosetta on Apple Silicon.
The arch parsing (debug/macho) is byte-level and works on any OS, so the logic here is cross-platform and unit-tested on Linux CI. Only the install roots and the host-hardware check (apps_darwin.go) are darwin-specific.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BundleInfo ¶
BundleInfo returns an app's CFBundleExecutable and CFBundleIdentifier.
Types ¶
type App ¶
type App struct {
Path string // …/Foo.app
Name string // "Foo"
BundleID string // com.acme.foo ("" if unreadable)
Bytes int64
Arch Arch
}
App is one installed application.
type Arch ¶
type Arch int
Arch is an app binary's architecture classification.
Click to show internal directories.
Click to hide internal directories.