Files
nfpm/testdata/acceptance/app.basic.yaml
Dj GilcreaseandClaude Fable 5.2 d6a3ed3abc ci(macos): build the macOS packages on Linux and verify them on macOS
macos-linux-build cross-compiles the test app and packages it as an
installer package, an application bundle and a disk image, unsigned and
signed with a throwaway certificate. Where the repository's Apple
Developer ID identities are available it also signs with those.

macos-verify takes those exact bytes to a macOS runner. The installer
installs, upgrades, downgrades and refuses the packages, including ones
with non-ASCII names and failing scripts; the bundles are unpacked and
launched, the images mounted; pkgutil, codesign and the system trust
stack check the signatures, and the signing certificate is compared by
fingerprint. Both jobs run on pull requests as well as in the merge
queue.

macos-acceptance-tests reads all three formats back on Linux for both
architectures, in the merge queue like the other structure tests.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-20 11:35:17 -08:00

26 lines
731 B
YAML

# One application bundle, used by both the app and the dmg packager.
name: testapp
arch: "${BUILD_ARCH}"
version: "${SEMVER}"
maintainer: "Foo Bar"
vendor: "Test Company"
homepage: "https://example.com/testapp"
description: "A test macOS application bundle"
contents:
# A launcher script: it runs on every architecture.
- src: ./testdata/acceptance/scripts/preinstall.sh
dst: /Contents/MacOS/testapp
file_info:
mode: 0755
- src: ./testdata/acceptance/testapp/logo.png
dst: /Contents/Resources/logo.png
- src: ../MacOS/testapp
dst: /Contents/Resources/launcher
type: symlink
app:
name: Test App
identifier: dev.goreleaser.nfpm.basic
min_os_version: "11.0"
info_plist:
LSUIElement: true