Documentation
¶
Overview ¶
Package buildlayout holds the local build directory to the estate layout: build/ with one folder per OS and nothing else.
build/
targets.txt, nfpm.yaml tracked inputs, when a repository has them
checksums.txt SHA-256 over every cross binary, as macos/{binary}_macos_arm64
macos/ linux/ windows/ freebsd/ … the binaries, flat
archives/ only after `make dist`, flat
icon-sets-sync the tracked Composer launcher (PHP), not a build output
No build/dist/, no binary at the root of build/, and no folder inside an OS folder or inside archives/. `make build-local`, `make cross` and `make dist` run Check after they write, through ./internal/tools/checkbuild.
Index ¶
Constants ¶
const AppBundle = Binary + ".app"
AppBundle is the macOS app `make app` writes into build/macos/.
const ArchivesDir = "archives"
ArchivesDir is the folder `make dist` adds.
const Binary = "icon-sets-sync"
Binary is the one program this repository builds.
const ComposerLauncher = Binary
ComposerLauncher is the PHP script composer.json registers as the package's command, so Composer installs it as vendor/bin/icon-sets-sync. It is tracked in build/ rather than in a bin/ folder (owner, 2026-11-13: one folder, and it is build/). It is allowed at the root only while it is that script, so a compiled binary written there by mistake still fails.
Variables ¶
var WindowsLauncherArchs = []string{"amd64", "arm64", "386"}
WindowsLauncherArchs are the Windows targets the launcher is built for: the same as the binary's Windows builds in src/.goreleaser.yaml.
Functions ¶
func Check ¶
Check returns every way dir breaks the layout, and the number of entries it inspected, so a caller can tell an empty build/ from a clean one. A missing dir is an error: there is nothing to vouch for. It also holds build/checksums.txt to the cross binaries: one line per {binary}_* file in the OS folders, named by its path inside build/ (macos/icon-sets-sync_macos_arm64), each hash matching, so `cd build && shasum -a 256 -c checksums.txt` passes.
func WindowsLauncher ¶
WindowsLauncher is the launcher's file name for a Windows arch, beside {binary}_windows_{arch}.exe.
Types ¶
This section is empty.