搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to extract only installable part after building Firefox from source?

  • 無回覆
  • 0 有這個問題
  • 11 次檢視
more options

After downloading about 10 GiB of source code and then building another 15 GiB, to install Firefox you need to use `./mach install` or more correctly: alias install='sudo sh -c "export MOZBUILD_STATE_PATH=$HOME/.mozbuild; ./mach install"'

But to re-install Nightly Firefox on the freshly installed (even the same) OS I will have to either save 25 GiB of source+build (+.mozbuild and other stuff) or to redo everything from scratch (needs at least 1h 20m). I'm having a hard time understanding all the abstractions and redirections from `./mach install` (and Makefile from ./obj-*/ which is automatically generated) to reconstruct a minimal set of things to install Firefox.

I need a bundle of files+dirs which is enough to install everything system-wide for Firefox to work properly. Maybe even simply run `./mach install` in this "minimal build installation" (if possible).

P.S. I'm using Debian based distro(s).

After downloading about 10 GiB of source code and then building another 15 GiB, to install Firefox you need to use `./mach install` or more correctly: alias install='sudo sh -c "export MOZBUILD_STATE_PATH=$HOME/.mozbuild; ./mach install"' But to re-install Nightly Firefox on the freshly installed (even the same) OS I will have to either save 25 GiB of source+build (+.mozbuild and other stuff) or to redo everything from scratch (needs at least 1h 20m). I'm having a hard time understanding all the abstractions and redirections from `./mach install` (and Makefile from ./obj-*/ which is automatically generated) to reconstruct a minimal set of things to install Firefox. I need a bundle of files+dirs which is enough to install everything system-wide for Firefox to work properly. Maybe even simply run `./mach install` in this "minimal build installation" (if possible). P.S. I'm using Debian based distro(s).