Repository navigation
fix: package-pkg pins BundleIsRelocatable and rejects a relocatable pkg - #187
Merged
Merged
Conversation
pkgbuild --analyze on some macOS releases omits BundleIsRelocatable, and the old `Set :0:BundleIsRelocatable false` then failed. package-pkg.sh now: - fails (exit 70) when --analyze lists no :0 bundle at all; - Sets the key to false when present, Adds it as bool false when absent; - expands the built pkg and fails (exit 70, pkg removed) if PackageInfo lists a <bundle> under <relocate>. release.yml calls this script but not test-packaging.sh, so the release job now gets the v0.6.0 guard too. Replaces #186, whose rename work main already ships in v0.12.0 (#117). Verified on a macOS build host from a clean `git archive` of this tree (80659ef), rsynced into the verify directory: - swift build: exit 0 - swift test: exit 0, 856 XCTest tests, 5 skipped, 0 failures - bash scripts/smoke.sh .build/debug/oab-computer: exit 0 - bash scripts/test-packaging.sh .build/debug/oab-computer: exit 0 ("packaging smoke: OK (0.12.0)")
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #186.
#186 was built on the 0.10.1 tree. The rename it carried (LaunchAgent
dev.openab.computer,~/.local/oab-computer/oab-computer.app, executableoab-computer,oab-computer-*artifacts) is already on main via #117 and shipped in v0.12.0. The one change main still lacked is thepackage-pkg.shrelocatable handling. This PR contains only that change, with a stricter version of it.Change (
scripts/package-pkg.sh)pkgbuild --analyzelists no:0bundle. That is a packaging fault, and the script no longer treats it as a missing key.Set :0:BundleIsRelocatable falsewhen the key exists.Add :0:BundleIsRelocatable bool falsewhen some macOS releases leave it out. Before this change theSetfailed on those releases.pkgbuild, expand the pkg and exit 70 (removing the pkg) ifPackageInfolists a<bundle>under<relocate>.release.ymlcallspackage-pkg.shbut nottest-packaging.sh, so the release job now checks for the v0.6.0 relocation failure too.Verification (macOS build host, clean
git archiveof this tree)swift buildswift testbash scripts/smoke.sh .build/debug/oab-computerbash scripts/test-packaging.sh .build/debug/oab-computerpackaging smoke: OK (0.12.0)The display-name issue stays tracked in #185.