Build configuration examples for testing and documentation: - build-minimal.yaml - Auto-detect everything - build-go-cli.yaml - Cross-platform CLI - build-go-wails.yaml - Desktop app with frontend - build-go-library.yaml - Library (no binary) - build-docker.yaml - Multi-arch container - build-docker-go.yaml - Go binary + Docker - build-linuxkit.yaml - Immutable Linux images - build-php-laravel.yaml - FrankenPHP + Laravel - build-multi-binary.yaml - Multiple binaries - build-full.yaml - All available options Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
725 B
YAML
46 lines
725 B
YAML
# Example: Wails Desktop App Build Configuration
|
|
# Cross-platform desktop application with web frontend
|
|
|
|
version: 1
|
|
|
|
project:
|
|
name: myapp
|
|
binary: myapp
|
|
|
|
build:
|
|
main: .
|
|
env:
|
|
CGO_ENABLED: "1" # Required for Wails
|
|
ldflags:
|
|
- -s -w
|
|
- -X main.version={{.Version}}
|
|
|
|
# Wails-specific configuration
|
|
wails:
|
|
frontend: ./frontend
|
|
# Auto-detects: npm, pnpm, yarn, bun
|
|
install_cmd: install
|
|
build_cmd: build
|
|
|
|
targets:
|
|
# Desktop platforms only
|
|
- os: darwin
|
|
arch: amd64
|
|
- os: darwin
|
|
arch: arm64
|
|
- os: windows
|
|
arch: amd64
|
|
- os: linux
|
|
arch: amd64
|
|
|
|
# Platform-specific packaging
|
|
package:
|
|
darwin:
|
|
- dmg
|
|
- app
|
|
windows:
|
|
- nsis
|
|
- zip
|
|
linux:
|
|
- tar.gz
|
|
- appimage
|