bearnet: make it LIVE on Linux + Windows (shared stager + windows netmon) - #96
Merged
Conversation
Extends the paper-tiger fix to all three platforms via a shared stager: - scripts/stage-bearnet.sh: one cross-platform stager — pages loose at <GreD>/browser/bearstart/, sidecar/bridge/policy/geoip at <GreD>/*, so the autoconfig's resource://bearstart/ substitution + Subprocess launcher find everything. macOS packager refactored onto it (DRY). - netmon.rs: Windows connection enumerator (netstat -no + tasklist for PID→name) behind #[cfg(windows)]; unix keeps lsof. No lsof on Windows. - autoconfig: launcher tries both bearbrowser-capture-sidecar-bin and .exe. - nightly-linux: build the sidecar natively → stage → RE-TAR dist/bearbrowser (mach's tarball predates staging). - build-windows-cross: cross-compile the sidecar to x86_64-pc-windows-gnu (mingw — far simpler than MSVC cross-linking; deps are all clean cross-platform, no MSVC-only C deps) → stage into dist/firefox → re-zip the portable archive. Host sidecar still builds; windows #[cfg] path compiles for the target on Linux CI (macOS host can't cross-link mingw — verified deps are windows-clean instead). macOS remains screenshot-verified; Linux/Windows confirmed by the nightlies.
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.
Extends the macOS paper-tiger fix to all three platforms.
<GreD>/browser/bearstart/, sidecar/bridge/policy/geoip at<GreD>/*) so the autoconfig'sresource://bearstart/substitution + Subprocess launcher find everything on every OS. macOS packager refactored onto it (DRY).netstat -no+tasklistfor PID→name) behind#[cfg(windows)]; unix keepslsof.bearbrowser-capture-sidecar-binand.exe.dist/bearbrowser.x86_64-pc-windows-gnu(mingw; deps are all clean cross-platform, no MSVC-only C deps) → stage intodist/firefox→ re-zip.Verification: macOS remains screenshot-verified live. Linux (native sidecar) is high-confidence. Windows cross-compile couldn't be checked from the macOS host (mingw linker) — the Linux CI nightly is the real test. Both nightlies triggered.