dmg

package
v3.0.0-alpha.74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

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

Creator handles DMG creation

func New

func New(sourcePath, outputPath, appName string) (*Creator, error)

New creates a new DMG creator

func (*Creator) AddIconPosition

func (c *Creator) AddIconPosition(filename string, x, y int)

AddIconPosition adds an icon position for the DMG layout

func (*Creator) Create

func (c *Creator) Create() error

Create creates the DMG file

func (*Creator) SetBackgroundImage

func (c *Creator) SetBackgroundImage(imagePath string) error

SetBackgroundImage sets the background image for the DMG

type Position

type Position struct {
	X, Y int
}

Position represents icon coordinates in the DMG

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL