Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Darwin ¶
type Darwin struct { Title string URL string InferIcon bool Target string Icon string // contains filtered or unexported fields }
Darwin bundles an executable into a native package with, passing the default arguments to it.
func (*Darwin) CreateConfig ¶
CreateConfig creates the config file relative to dest.
func (*Darwin) CreateExecutable ¶
CreateExecutable creates the main program executable relative to dest.
func (*Darwin) CreatePlist ¶
CreatePlist creates an Info.plist file, relative to dest.
type IconInferrer ¶
IconInferrer abstracts how to retrieve an icon for a given url.
type IconInferrerFunc ¶
IconInferrerFunc wraps functions to satisfy IconInferrer.
type Packager ¶
Packager creates an OS specific executable package. For OSX this is typically a ".app", windows is ".exe" and linux is an elf binary.
func NewPackager ¶
func NewPackager( target string, title string, url string, inferIcon bool, inferrer IconInferrer, fs afero.Fs, ) (Packager, error)
NewPackager instantiates a Packager. target: the executable file to bundle. title: name of the `.app` folder. url: website to point to. inferIcon: try to guess the icon. inferrer: responsible for doing the inference, defaults to `pageicon.Infer`.