import "github.com/egdaemon/eg/runtime/x/wasi/egdmg"
func Build(b Specification, archive string) eg.OpFn
func Name(pattern string) string
replaces the substitution values within the pattern, resulting in the final resulting archive file's name.
func OptionMkisofs(d *Specification)
experimental mkisofs
func Path(pattern string) string
Path from the given pattern
type Option func(*Specification)
func OptionBuildDir(s string) Option
directory to construct process the clone and then construct the file tree in. defaults to egenv.EphemeralDirectory
func OptionDmgCmd(s string) Option
OptionDmgCmd set the command to build the dmg. the string replacements must be in the following order:
func OptionOutputDir(s string) Option
directory to place dmg, defaults to egenv.WorkloadDirectory
func OptionOutputName(s string) Option
filename to give to the resulting dmg file. defaults to {name}.dmg
func OptionRuntime(s shell.Command) Option
type Specification struct {
// contains filtered or unexported fields
}
func New(pattern string, options ...Option) Specification
New create a new dmg specification using the pattern and options.