ipa

package
v0.0.0-...-72dfc82 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenIPA

func OpenIPA(path string) (*zip.ReadCloser, error)

func ParseInfoPList

func ParseInfoPList(zr *zip.ReadCloser) (map[string]string, error)

func ReadIconData

func ReadIconData(zr *zip.ReadCloser, iconName string) ([]byte, error)

func SpellInstallHtml

func SpellInstallHtml(manifestURL, iconURL, title string) string

func SpellManifest

func SpellManifest(ipaURL, bid, bver, title, icon string) string

Types

type Result

type Result struct {
	InstallURL string
	IpaURL     string
	QrURL      string
}

func Do

func Do(ctx context.Context, ipa string, icon string, up Uploader) (*Result, error)

Do parse ipa and upload to remote storage.

type Uploader

type Uploader interface {
	Upload(ctx context.Context, r io.Reader, path string) (url string, err error)
}

Jump to

Keyboard shortcuts

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