build

package
v0.1.111 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AndroidPermissions = map[string][]string{
		"network":      {"android.permission.INTERNET"},
		"networkstate": {"android.permission.ACCESS_NETWORK_STATE"},
		"storage":      {"android.permission.READ_EXTERNAL_STORAGE", "android.permission.WRITE_EXTERNAL_STORAGE"},
	}
	AndroidFeatures = map[string][]string{
		"default": {`glEsVersion="0x00020000"`, `name="android.hardware.type.pc"`},
	}
)

Functions

func BuildAndroid

func BuildAndroid(output string, args []string, androidAPI int, ndkVersion string, ldflags string) error

func BuildDesktop

func BuildDesktop(output string, pkgPath string, ldflags string) error

func BuildJS

func BuildJS(outputDir string, pkgPath string, ldflags string) error

BuildJS builds the package at pkgPath for the JS/WASM target and writes the output to outputDir.

func Run

func Run(args []string) error

Types

type BuildInfo

type BuildInfo struct {
	AppID     string
	Version   Semver
	MinSDK    int
	TargetSDK int
	Name      string
	PkgPath   string // Go package path (e.g. github.com/user/app)
	IconPath  string
	Tags      string
	Key       string // Path to keystore
	Password  string // Keystore password
	Archs     []string
}

BuildInfo contains the configuration for a build.

type Semver

type Semver struct {
	Major, Minor, Patch int
	VersionCode         uint32
}

func (Semver) String

func (s Semver) String() string

Jump to

Keyboard shortcuts

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