apple

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: EUPL-1.2 Imports: 7 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildWailsApp

func BuildWailsApp(ctx context.Context, cfg WailsBuildConfig) core.Result

BuildWailsApp compiles the Wails application for a single Apple architecture.

Example

ExampleBuildWailsApp references BuildWailsApp on this package API surface.

_ = BuildWailsApp
core.Println("BuildWailsApp")
Output:
BuildWailsApp

func CreateDMG

func CreateDMG(ctx context.Context, cfg DMGConfig) core.Result

CreateDMG packages the app bundle into a DMG and returns the DMG path.

Example

ExampleCreateDMG references CreateDMG on this package API surface.

_ = CreateDMG
core.Println("CreateDMG")
Output:
CreateDMG

func CreateUniversal

func CreateUniversal(arm64Path, amd64Path, outputPath string) core.Result

CreateUniversal merges arm64 and amd64 bundles into a universal bundle.

Example

ExampleCreateUniversal references CreateUniversal on this package API surface.

_ = CreateUniversal
core.Println("CreateUniversal")
Output:
CreateUniversal

func Notarise

func Notarise(ctx context.Context, cfg NotariseConfig) core.Result

Notarise submits the artefact for Apple notarisation.

Example

ExampleNotarise references Notarise on this package API surface.

_ = Notarise
core.Println("Notarise")
Output:
Notarise

func Register

func Register(c *core.Core) core.Result

Register wires AppleBuilder into the Core service container and seeds the builders registry when the host Core exposes one.

Example

ExampleRegister references Register on this package API surface.

_ = Register
core.Println("Register")
Output:
Register

func Sign

func Sign(ctx context.Context, cfg SignConfig) core.Result

Sign code-signs the given Apple artefact.

Example

ExampleSign references Sign on this package API surface.

_ = Sign
core.Println("Sign")
Output:
Sign

func SubmitAppStore

func SubmitAppStore(ctx context.Context, cfg AppStoreConfig) core.Result

SubmitAppStore uploads the packaged build to App Store Connect.

Example

ExampleSubmitAppStore references SubmitAppStore on this package API surface.

_ = SubmitAppStore
core.Println("SubmitAppStore")
Output:
SubmitAppStore

func UploadTestFlight

func UploadTestFlight(ctx context.Context, cfg TestFlightConfig) core.Result

UploadTestFlight uploads the packaged build to TestFlight.

Example

ExampleUploadTestFlight references UploadTestFlight on this package API surface.

_ = UploadTestFlight
core.Println("UploadTestFlight")
Output:
UploadTestFlight

Types

type AppStoreConfig

type AppStoreConfig = build.AppStoreConfig

AppStoreConfig aliases the App Store Connect submission configuration.

type AppleBuilder

type AppleBuilder struct {
	*core.ServiceRuntime[AppleOptions]
	// contains filtered or unexported fields
}

AppleBuilder wraps the existing Apple pipeline with functional options.

func New

func New(opts ...Option) *AppleBuilder

New constructs an AppleBuilder with functional options.

Example

ExampleNew references New on this package API surface.

_ = New
core.Println("New")
Output:
New

func (*AppleBuilder) Build

func (b *AppleBuilder) Build(ctx context.Context, cfg *AppleOptions) core.Result

Build runs the Apple pipeline for the current working directory and returns the .app bundle path.

Example

ExampleAppleBuilder_Build references AppleBuilder.Build on this package API surface.

_ = (*AppleBuilder).Build
core.Println("AppleBuilder.Build")
Output:
AppleBuilder.Build

func (*AppleBuilder) Detect

func (b *AppleBuilder) Detect(fs coreio.Medium, dir string) core.Result

Detect reports whether the current directory looks like a Wails-backed Apple target.

Example

ExampleAppleBuilder_Detect references AppleBuilder.Detect on this package API surface.

_ = (*AppleBuilder).Detect
core.Println("AppleBuilder.Detect")
Output:
AppleBuilder.Detect

func (*AppleBuilder) Name

func (b *AppleBuilder) Name() string

Name returns the builder identifier.

Example

ExampleAppleBuilder_Name references AppleBuilder.Name on this package API surface.

_ = (*AppleBuilder).Name
core.Println("AppleBuilder.Name")
Output:
AppleBuilder.Name

type AppleOptions

type AppleOptions = build.AppleOptions

AppleOptions aliases the core Apple pipeline options.

type Builder

type Builder interface {
	Name() string
	Detect(fs coreio.Medium, dir string) core.Result
	Build(ctx context.Context, cfg *AppleOptions) core.Result
}

Builder defines the RFC-facing Apple builder contract.

type DMGConfig

type DMGConfig = build.DMGConfig

DMGConfig aliases the DMG packaging configuration.

type Entitlements

type Entitlements = build.Entitlements

Entitlements aliases the generated entitlements model.

type InfoPlist

type InfoPlist = build.InfoPlist

InfoPlist aliases the generated Info.plist model.

type NotariseConfig

type NotariseConfig = build.NotariseConfig

NotariseConfig aliases the notarisation configuration.

type Option

type Option func(*AppleOptions)

Option configures Apple pipeline defaults for a new AppleBuilder.

func WithAppStore

func WithAppStore(appStore bool) Option

WithAppStore enables or disables App Store submission.

Example

ExampleWithAppStore references WithAppStore on this package API surface.

_ = WithAppStore
core.Println("WithAppStore")
Output:
WithAppStore

func WithArch

func WithArch(arch string) Option

WithArch sets the target architecture.

Example

ExampleWithArch references WithArch on this package API surface.

_ = WithArch
core.Println("WithArch")
Output:
WithArch

func WithDMG

func WithDMG(dmg bool) Option

WithDMG enables or disables DMG creation.

Example

ExampleWithDMG references WithDMG on this package API surface.

_ = WithDMG
core.Println("WithDMG")
Output:
WithDMG

func WithNotarise

func WithNotarise(notarise bool) Option

WithNotarise enables or disables notarisation.

Example

ExampleWithNotarise references WithNotarise on this package API surface.

_ = WithNotarise
core.Println("WithNotarise")
Output:
WithNotarise

func WithSign

func WithSign(sign bool) Option

WithSign enables or disables code signing.

Example

ExampleWithSign references WithSign on this package API surface.

_ = WithSign
core.Println("WithSign")
Output:
WithSign

func WithTestFlight

func WithTestFlight(tf bool) Option

WithTestFlight enables or disables TestFlight upload.

Example

ExampleWithTestFlight references WithTestFlight on this package API surface.

_ = WithTestFlight
core.Println("WithTestFlight")
Output:
WithTestFlight

type SignConfig

type SignConfig = build.SignConfig

SignConfig aliases the codesign configuration.

type TestFlightConfig

type TestFlightConfig = build.TestFlightConfig

TestFlightConfig aliases the TestFlight upload configuration.

type WailsBuildConfig

type WailsBuildConfig struct {
	ProjectDir string   `json:"project_dir" yaml:"project_dir"`
	Name       string   `json:"name" yaml:"name"`
	Arch       string   `json:"arch" yaml:"arch"`
	BuildTags  []string `json:"build_tags" yaml:"build_tags"`
	LDFlags    string   `json:"ldflags" yaml:"ldflags"`
	OutputDir  string   `json:"output_dir" yaml:"output_dir"`
	Version    string   `json:"version" yaml:"version"`
	Env        []string `json:"env" yaml:"env"`
	DenoBuild  string   `json:"deno_build" yaml:"deno_build"`
}

WailsBuildConfig mirrors the RFC-facing Apple wrapper input shape. The wrapper keeps LDFlags as a single string while the lower-level build package accepts a slice for direct CLI assembly.

type XcodeCloudConfig

type XcodeCloudConfig = build.XcodeCloudConfig

XcodeCloudConfig aliases the Xcode Cloud workflow metadata stored in build config.

type XcodeCloudTrigger

type XcodeCloudTrigger = build.XcodeCloudTrigger

XcodeCloudTrigger aliases a single Xcode Cloud trigger rule.

Jump to

Keyboard shortcuts

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