mirror of
https://github.com/goreleaser/nfpm
synced 2026-11-29 08:54:49 +01:00
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>
36 lines
1021 B
YAML
36 lines
1021 B
YAML
name: nfpm-pkg-test
|
|
arch: ${NFPM_PKG_TEST_ARCH}
|
|
# A prerelease on purpose: macOS must accept and record the full version.
|
|
version: 2.0.0-rc1
|
|
maintainer: "Test Company <test@example.com>"
|
|
description: "A test macOS installer package"
|
|
contents:
|
|
- src: ./dist/testapp-newer
|
|
dst: /usr/local/bin/nfpm-pkg-test
|
|
file_info:
|
|
mode: 0755
|
|
- src: /usr/local/bin/nfpm-pkg-test
|
|
dst: /usr/local/bin/nfpm-pkg-test-link
|
|
type: symlink
|
|
- src: ./testdata/whatever.conf
|
|
dst: /etc/nfpm-pkg-test/app.conf
|
|
type: config
|
|
file_info:
|
|
mode: 0640
|
|
group: admin
|
|
- dst: /Library/Application Support/NfpmPkgTest
|
|
type: dir
|
|
file_info:
|
|
mode: 0750
|
|
group: staff
|
|
- src: ./dist/héllo-世界.txt
|
|
dst: /Library/Application Support/NfpmPkgTest/héllo-世界.txt
|
|
file_info:
|
|
mode: 0644
|
|
scripts:
|
|
preinstall: ./testdata/acceptance/pkg/preinstall.sh
|
|
postinstall: ./testdata/acceptance/pkg/postinstall.sh
|
|
pkg:
|
|
identifier: dev.goreleaser.nfpm.pkgtest
|
|
min_os_version: "11.0"
|