In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/egdmg"

func Build

func Build(b Specification, archive string) eg.OpFn

func Name

func Name(pattern string) string

replaces the substitution values within the pattern, resulting in the final resulting archive file's name.

func OptionMkisofs

func OptionMkisofs(d *Specification)

experimental mkisofs

func Path

func Path(pattern string) string

Path from the given pattern

type Option

type Option func(*Specification)

func OptionBuildDir

func OptionBuildDir(s string) Option

directory to construct process the clone and then construct the file tree in. defaults to egenv.EphemeralDirectory

func OptionDmgCmd

func OptionDmgCmd(s string) Option

OptionDmgCmd set the command to build the dmg. the string replacements must be in the following order:

func OptionOutputDir

func OptionOutputDir(s string) Option

directory to place dmg, defaults to egenv.WorkloadDirectory

func OptionOutputName

func OptionOutputName(s string) Option

filename to give to the resulting dmg file. defaults to {name}.dmg

func OptionRuntime

func OptionRuntime(s shell.Command) Option

type Specification

type Specification struct {
    // contains filtered or unexported fields
}

func New

func New(pattern string, options ...Option) Specification

New create a new dmg specification using the pattern and options.