Commit 0f365722 authored by dignatoff's avatar dignatoff Committed by brizental
Browse files

fixup! BB 43564: Modify ./mach bootstrap for Base Browser

TB 44850: Fix macOS paths in ./mach bootstrap.
parent e06e4574
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -279,16 +279,19 @@ class BuildBackend(LoggingMixin):
        noscript_location = config.substs.get("NOSCRIPT")

        if app == "browser":
            tbdir = Path(config.topobjdir) / "dist" / "bin"

            if config.substs.get("OS_TARGET") == "Darwin":
                tbdir = next(tbdir.glob("*.app"))
                tbdir = (
                    Path(config.topobjdir)
                    / "dist"
                    / config.substs["MOZ_MACBUNDLE_NAME"]
                )
                paths = {
                    "docs": tbdir / "Contents/Resources/TorBrowser/Docs",
                    "exts": tbdir / "Contents/Resources/distribution/extensions",
                    "fonts": tbdir / "Resources/fonts",
                }
            else:
                tbdir = Path(config.topobjdir) / "dist" / "bin"
                paths = {
                    "docs": tbdir / "TorBrowser/Docs",
                    "exts": tbdir / "distribution/extensions",