feat(build): bundle Bear Spaces + Bear Containers into overlay — ship by default - #146
Merged
Merged
Conversation
bearbrowser-pack-extensions.sh (new): - Loops extensions/*/; reads gecko ID from manifest.json - Zips contents → build/extensions/<gecko-id>.xpi (portable output path) bearbrowser-install-extensions.sh (new): - Copies .xpi files into BearBrowser.app/Contents/Resources/distribution/extensions/ - Merges policies.json: Extensions.Install + ExtensionSettings force_installed - Preserves existing policies (wildcard block, etc.) via Python merge bearbrowser-overlay-binary.sh (modified): - New step 7 (of 10): pack → install extensions before xattr-strip + signing - Extensions land inside the bundle and are covered by the ad-hoc signature - Renumbered existing steps 7→8, 8→9, 9→10 extensions/README.md (new): - Bear Spaces + Bear Containers feature docs - Dev load instructions (about:debugging) - Overlay build pipeline explanation
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.
Summary
The two BearBrowser extensions (Bear Spaces, Bear Containers) were written but not bundled — users had to manually load them via
about:debugging. This PR wires them into the overlay build so they're force-installed on first launch.How it works
Step 1 — Pack (
bearbrowser-pack-extensions.sh):browser_specific_settings.gecko.idfrom eachextensions/*/manifest.jsonbuild/extensions/<gecko-id>.xpiStep 2 — Install (
bearbrowser-install-extensions.sh):.xpifiles intoBearBrowser.app/Contents/Resources/distribution/extensions/policies.json(preserving existing policies):{ "policies": { "Extensions": { "Install": ["file:///...bear-spaces@bearbrowser.local.xpi", "..."] }, "ExtensionSettings": { "bear-spaces@bearbrowser.local": { "installation_mode": "force_installed" }, "bear-containers@bearbrowser.local": { "installation_mode": "force_installed" } } } }Overlay build (
bearbrowser-overlay-binary.sh):Files
scripts/bearbrowser-pack-extensions.sh.xpiscripts/bearbrowser-install-extensions.sh.xpi+ writepolicies.jsonscripts/bearbrowser-overlay-binary.shextensions/README.mdTest plan
./scripts/bearbrowser-pack-extensions.sh— producesbuild/extensions/bear-spaces@bearbrowser.local.xpiandbear-containers@mdheller.xpi./scripts/bearbrowser-install-extensions.sh /Applications/BearBrowser.app— XPIs copied,policies.jsoncontains bothforce_installedentries./scripts/bearbrowser-overlay-binary.sh) completes step 7 without errorpolicies.jsonentries (if any) not overwritten