# Build Configuration for Lightweight Updater project: name: "Lightweight Updater" module: "lightweight-updater" description: "轻量级自动更新器" version: default: "1.0.0" build_time_format: "2006-01-02T15:04:05Z" targets: - name: "windows-amd64" goos: "windows" goarch: "amd64" cgo_enabled: true output: "lightweight-updater.exe" build: flags: ldflags: "-s -w" tags: [] optimization: strip_debug: true strip_symbols: true upx_compression: false # Optional, requires UPX size_requirements: max_size_mb: 10 warn_size_mb: 8 assets: embed: - "assets/config_template.yaml" directories: build: "build" dist: "dist" temp: "temp" version_injection: package: "lightweight-updater/version" variables: - name: "Version" source: "version" - name: "BuildTime" source: "build_time" - name: "GitCommit" source: "git_commit" quality: run_tests: true run_lint: false # Optional format_code: true