[tbb-commits] [Git][tpo/applications/tor-browser][tor-browser-115.2.0esr-13.0-1] fixup! Bug 4234: Use the Firefox Update Process for Base Browser.

richard (@richard) git at gitlab.torproject.org
Thu Sep 7 22:16:50 UTC 2023



richard pushed to branch tor-browser-115.2.0esr-13.0-1 at The Tor Project / Applications / Tor Browser


Commits:
9b73a337 by Pier Angelo Vendrame at 2023-09-06T22:20:01+00:00
fixup! Bug 4234: Use the Firefox Update Process for Base Browser.

Allow customizing the updater URL with config options.

With this, we will not need sed hacks on tor-browser-build anymore.

- - - - -


3 changed files:

- build/application.ini.in
- build/moz.build
- build/moz.configure/update-programs.configure


Changes:

=====================================
build/application.ini.in
=====================================
@@ -52,5 +52,5 @@ ServerURL=@MOZ_CRASHREPORTER_URL@/submit?id=@MOZ_APP_ID@&version=@MOZ_APP_VERSIO
 
 #if MOZ_UPDATER
 [AppUpdate]
-URL=https://aus1.torproject.org/torbrowser/update_3/%CHANNEL%/%BUILD_TARGET%/%VERSION%/ALL
+URL=@BB_UPDATER_URL@/%CHANNEL%/%BUILD_TARGET%/%VERSION%/ALL
 #endif


=====================================
build/moz.build
=====================================
@@ -75,6 +75,7 @@ if CONFIG["MOZ_APP_BASENAME"]:
         "MAR_CHANNEL_ID",
         "MOZ_APP_REMOTINGNAME",
         "MOZ_CRASHREPORTER_URL",
+        "BB_UPDATER_URL",
     ):
         appini_defines[var] = CONFIG[var]
 


=====================================
build/moz.configure/update-programs.configure
=====================================
@@ -204,3 +204,19 @@ option(
 
 set_config("BASE_BROWSER_UPDATE", True, when="--enable-base-browser-update")
 set_define("BASE_BROWSER_UPDATE", True, when="--enable-base-browser-update")
+
+
+# Updater URL
+# ==============================================================
+
+option(
+    "--with-updater-url",
+    default="https://aus1.torproject.org/torbrowser/update_3/",
+    nargs=1,
+    help="Set the updater URL",
+)
+
+set_config(
+    "BB_UPDATER_URL",
+    depends("--with-updater-url")(lambda x: x[0].rstrip("/")),
+)



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/9b73a3370776d26e912e212c2185b657320279f0

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/9b73a3370776d26e912e212c2185b657320279f0
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20230907/7fe4e480/attachment-0001.htm>


More information about the tbb-commits mailing list