Documentation
¶
Index ¶
- func AddBundleIconFilesToPlist(plistPath string) error
- func ConfigureDetachedProcAttr(cmd *exec.Cmd)
- func ConvertPlistToJSON(plistData []byte, result interface{}) error
- func ConvertPngToJpeg(pngBytes []byte, quality int) ([]byte, error)
- func CopyFile(src, dst string) error
- func DownloadFile(url, localPath string) error
- func FindAvailablePortInRange(startPort, endPort int) (int, error)
- func GetLatestReleaseDownloadURL(repo string) (string, error)
- func GetProjectFile(path string) (string, error)
- func Info(format string, args ...interface{})
- func IsPortAvailable(host string, port int) bool
- func IsVerbose() bool
- func ModifyPlist(input ModifyPlistInput) error
- func SetVerbose(verbose bool)
- func Unzip(zipPath string) (string, error)
- func Verbose(format string, args ...interface{})
- type GitHubRelease
- type ModifyPlistInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddBundleIconFilesToPlist ¶
AddBundleIconFilesToPlist adds the CFBundleIconFiles array to the plist
func ConfigureDetachedProcAttr ¶
ConfigureDetachedProcAttr configures the command to run in a separate process group on Unix systems, allowing for proper cleanup when the parent process is terminated.
func ConvertPlistToJSON ¶
ConvertPlistToJSON converts plist bytes to JSON and unmarshals into the provided result
func DownloadFile ¶
DownloadFile downloads a file from the given URL to the specified local path
func GetLatestReleaseDownloadURL ¶
GetLatestReleaseDownloadURL fetches the latest release from a GitHub repository and returns the browser download URL of the first asset
func GetProjectFile ¶
func IsPortAvailable ¶
func ModifyPlist ¶
func ModifyPlist(input ModifyPlistInput) error
ModifyPlist modifies a plist file using plutil to add or replace a key-value pair
func SetVerbose ¶
func SetVerbose(verbose bool)
Types ¶
type GitHubRelease ¶
type ModifyPlistInput ¶
ModifyPlistInput contains parameters for modifying a plist file