Skip to content

Commit a9e56cf

Browse files
committed
v0.1.15: bundle uBlock Origin as the default ad/tracker blocker
- build-release.sh fetches full uBlock Origin (MV2 — Ungoogled Chromium keeps MV2 support) once via the GitHub API and stages it into extensions/ublock - launcher already auto-loads every extension subdir, so it's on by default (users can disable in chrome://extensions); non-fatal if the fetch fails - gitignore the fetched (GPL) extension dir
1 parent 5f3aa1f commit a9e56cf

26 files changed

Lines changed: 56 additions & 25 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ coverage/
1717
# Expo / React Native (apps/mobile)
1818
.expo/
1919
*.orig
20+
21+
# Bundled at build time (fetched, GPL — not vendored)
22+
apps/desktop/extensions/ublock/

‎apps/desktop/extensions/ai-sidebar/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 3,
33
"name": "TronBrowser",
4-
"version": "0.1.14",
4+
"version": "0.1.15",
55
"description": "TronBrowser — privacy-first, AI-native. Branded new tab, DuckDuckGo search, CoinPay login, and a bring-your-own-keys AI sidebar.",
66
"icons": {
77
"16": "icons/icon-16.png",

‎apps/desktop/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/desktop",
3-
"version": "0.1.14",
3+
"version": "0.1.15",
44
"private": true,
55
"description": "Desktop shell for the TronBrowser Chromium fork",
66
"type": "module",

‎apps/desktop/scripts/build-release.sh‎

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env bash
2-
# Assemble TronBrowser release archives (launcher shim + AI sidebar extension)
2+
# Assemble TronBrowser release archives (launcher shim + AI sidebar + uBlock
3+
# Origin + chromium-web-store extensions)
34
# for a given platform. Until the native fork binary is built, this packages the
45
# launcher; asset names are stable so install.sh / package managers are unchanged.
56
#
@@ -13,6 +14,25 @@ DESKTOP="$REPO_ROOT/apps/desktop"
1314
OUT="$REPO_ROOT/dist"
1415
mkdir -p "$OUT"
1516

17+
# Fetch uBlock Origin ONCE (the per-platform stage() copies from here). Full
18+
# uBlock Origin is MV2 — Ungoogled Chromium keeps MV2 support, so we ship the
19+
# real thing (not uBO Lite). The release asset name carries the version, so we
20+
# resolve the latest .chromium.zip via the GitHub API. Entirely non-fatal.
21+
UBO_SRC=""
22+
fetch_ublock() {
23+
command -v python3 >/dev/null 2>&1 || { echo " ! uBlock skipped (no python3)"; return; }
24+
local url
25+
url="$(curl -fsSL https://api.github.com/repos/gorhill/uBlock/releases/latest 2>/dev/null \
26+
| python3 -c 'import sys,json;d=json.load(sys.stdin);print(next((a["browser_download_url"] for a in d["assets"] if a["name"].endswith(".chromium.zip")),""))' 2>/dev/null)" || true
27+
[ -n "$url" ] || { echo " ! uBlock resolve skipped (non-fatal)"; return; }
28+
local z d m; z="$(mktemp)"; d="$(mktemp -d)"
29+
if curl -fsSL "$url" -o "$z" 2>/dev/null && unzip -q -o "$z" -d "$d" 2>/dev/null; then
30+
m="$(find "$d" -maxdepth 2 -name manifest.json | head -1)"
31+
if [ -n "$m" ]; then UBO_SRC="$(dirname "$m")"; echo " + fetched uBlock Origin ($url)"; fi
32+
fi
33+
rm -f "$z" # keep $d (UBO_SRC lives inside) until the script exits
34+
}
35+
1636
stage() { # dest dir
1737
local s="$1"
1838
mkdir -p "$s/extensions"
@@ -38,6 +58,12 @@ stage() { # dest dir
3858
echo " ! chromium-web-store download skipped (non-fatal)"
3959
fi
4060
rm -f "$crx"
61+
62+
# Default ad/tracker blocker: uBlock Origin (fetched once into $UBO_SRC).
63+
if [ -n "$UBO_SRC" ] && [ -d "$UBO_SRC" ]; then
64+
mkdir -p "$s/extensions/ublock"
65+
cp -R "$UBO_SRC/." "$s/extensions/ublock/"
66+
fi
4167
}
4268

4369
build_archive() { # ext-type
@@ -51,6 +77,8 @@ build_archive() { # ext-type
5177
rm -rf "$t"
5278
}
5379

80+
fetch_ublock
81+
5482
case "$PLATFORM" in
5583
linux|macos|windows) build_archive "$PLATFORM" ;;
5684
all) build_archive linux; build_archive macos; build_archive windows ;;

‎apps/docs/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/docs",
3-
"version": "0.1.14",
3+
"version": "0.1.15",
44
"private": true,
55
"description": "Documentation site",
66
"type": "module",

‎apps/mobile/app.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"slug": "tronbrowserdev",
55
"owner": "profullstack",
66
"scheme": "tronbrowser",
7-
"version": "0.1.14",
7+
"version": "0.1.15",
88
"orientation": "portrait",
99
"userInterfaceStyle": "dark",
1010
"platforms": [

‎apps/mobile/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/mobile",
3-
"version": "0.1.14",
3+
"version": "0.1.15",
44
"private": true,
55
"description": "TronBrowser mobile (Expo / React Native) — Phase 2",
66
"type": "module",

‎apps/web/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/web",
3-
"version": "0.1.14",
3+
"version": "0.1.15",
44
"private": true,
55
"description": "TronBrowser marketing site + web dashboard",
66
"type": "module",

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tronbrowser",
3-
"version": "0.1.14",
3+
"version": "0.1.15",
44
"private": true,
55
"description": "TronBrowser.dev — open-source, privacy-first, AI-native browser",
66
"packageManager": "pnpm@9.12.0",

‎packages/agent-runtime/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tronbrowser/agent-runtime",
3-
"version": "0.1.14",
3+
"version": "0.1.15",
44
"private": true,
55
"description": "Agent runtime: planner, executor, validator, memory, tools",
66
"type": "module",

0 commit comments

Comments
 (0)