Files
nfpm/testdata/acceptance/app.signed.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

37 lines
1.2 KiB
YAML

# The bundle of app.install.yaml, signed with a throwaway certificate.
name: nfpm-app-test
arch: ${NFPM_PKG_TEST_ARCH}
# A prerelease on purpose: macOS must launch a bundle whose version says so.
version: 1.0.0-rc1
maintainer: "Test Company <test@example.com>"
description: "A test macOS application bundle"
contents:
- src: ./dist/testapp
dst: /Contents/MacOS/nfpm-app-test
file_info:
mode: 0755
# A second program: signing has to cover every program in the bundle.
- src: ./dist/testapp-newer
dst: /Contents/MacOS/helper
file_info:
mode: 0755
- src: ./dist/héllo-世界.txt
dst: /Contents/Resources/héllo-世界.txt
file_info:
mode: 0644
- src: ../MacOS/nfpm-app-test
dst: /Contents/Resources/launcher
type: symlink
app:
name: Nfpm App Test
identifier: dev.goreleaser.nfpm.apptest
min_os_version: "11.0"
info_plist:
LSUIElement: true
signature:
# The identity and the timestamp service come from the environment: a
# throwaway certificate without a timestamp by default, and a real
# Developer ID identity with Apple's timestamp where CI has one.
p12_file: ${NFPM_MACOS_TEST_P12}
timestamp_url: ${NFPM_MACOS_TEST_TIMESTAMP_URL}