Repository navigation
fix(capture): always build scrawl-helper on macOS - #3184
Merged
Merged
Conversation
#3180 removed scrawl-capture's `helper` feature, but build.rs still compiled the Swift helper only when CARGO_FEATURE_HELPER was set, so target/release/scrawl-helper was never produced and build-app.sh failed to copy it into the bundle. Compile it on every macOS build.
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.
What failed
Test builds / macOS arm64fails inscripts/build-app.shafter a successfulcargo build --release:Root cause
crates/capture/build.rscompiles the Swiftscrawl-helperintotarget/releaseonly whenCARGO_FEATURE_HELPERis set. #3180 removed thescreen/helperfeatures fromcrates/capture/Cargo.tomland droppedfeatures = ["screen", "helper"]from the rootCargo.toml, but left the check inbuild.rs. The helper is never built anymore, and the bundle step can't copy it.Fix
On macOS,
build.rsnow callscompile_helper()unconditionally. Every macOS build ships the helper (build-app.sh,validate-app.shandsign-macos.shall expect it), and before #3180 it was a default feature, so this restores the old behaviour. Non-macOS targets still return early.Verification
The job is macOS-only, and the Linux sandbox used for this fix has no Rust toolchain, so I couldn't build or run it here. I checked by reading the code: a search found no other references to the removed features (
CARGO_FEATURE_*,feature = "helper", etc.), anddefaulthas no commits after the failing one, so it still has the bug. The macOS test build in CI will confirm.CI failure:
Test builds / macOS arm64failed 2 runs in a row ondev.8f8f9df(first failing: run 1936)ab92b8a1b4a18e"chore: prune dead modules, fixtures, and stale docs across repo (chore: prune dead modules, fixtures, and stale docs across repo #3180)" (chore: prune dead modules, fixtures, and stale docs across repo #3180) by @kitlangtonOpened by the CI fix job: it does not merge or push to
dev.