Skip to content

Linux packages

Francois Marier edited this page Feb 20, 2019 · 7 revisions

Here are instructions on how to build the brave-browser Linux packages during development.

Distro version

The official packages are currently built on Ubuntu 14.04, but they have also been built successfully on 16.04 and 18.04.

If using 14.04, you'll need to add a third-party repo and install the openjdk-8-jre package.

Normal user

If building in a virtual machine, make sure you don't build as root or the npm run init might fail.

Build command

Once you've installed the pre-requisites and cloned the repo, the build command to use is:

npm run create_dist Release -- --debug_build=true

In particular, make sure you don't specify --official_build=false or your build might fail.

The --debug_build=true argument is optional but should speed up the build.

Once the build is done, you'll find the .deb and .rpm directly in src/out/Release/.

Beta / dev packages

To build beta or dev packages, use the --channel argument:

npm run create_dist Release -- --channel=beta
Clone this wiki locally