LoginSignup
1
0

More than 5 years have passed since last update.

Firefoxの独自ビルドカスタムビルドを行う方法

Last updated at Posted at 2019-01-04

①下記の手順で一旦ArtificialBuildを生成してFirefox自体が動作することを確認する

②mozconfigに下記を入れる

export MOZ_APP_BASENAME=Mybrowser
export MOZ_APP_VENDOR=Myvendor

③mozconfigから下記を削除する

# Automatically download and use compiled C++ components:
ac_add_options --enable-artifact-builds

④browser/confvars.shに下記を入れる。

export MOZ_APP_BASENAME=Mybrowser
export MOZ_APP_VENDOR=Myvendor

⑤非ArtificalBuild用にコンフィグ

./mach bootstrap (今度は非ArtificialBuild二番を選択する)

⑥ビルドする

./mach build (ビルドに一、二時間かかる)

⑦起動を確認する

./mach run

この段階ではtmpのプロファイルを使用しているので、自分の独自ビルドのプロファイルを使うようにする。
(あらかじめ上記でヘルプ→トラブルシューティングでmyprofileを生成しておく)

⑧myprofileで起動

./mach run -P myprofile

⑨下記にプロファイルが生成されていることを確認する。

C:\Users\<ユーザ名>\AppData\Roaming\MyVendor\MyBrowser\Profiles\vkghx6h0.myprofile

お疲れさまでした。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0