# browser-laptop **Repository Path**: tufeiping/browser-laptop ## Basic Information - **Project Name**: browser-laptop - **Description**: Brave browser for Desktop and Laptop computers running Windows, OSX, and Linux - **Primary Language**: JavaScript - **License**: MPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-01-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Build Status](https://travis-ci.org/brave/browser-laptop.svg?branch=master)](https://travis-ci.org/brave/browser-laptop) # Brave Browser Laptop and Desktop browser for OS X, Windows and Linux. ## Requirements 1. nodejs >= 5.0 Install from your package manager or download from https://nodejs.org 2. node-gyp 3.2.1 sudo npm install -g node-gyp@3.2.1 [Prerequisites](https://github.com/brave/browser-laptop/blob/master/docs/prerequisites.md) for Windows ## Installation Make sure you have all of the pre-requisite compilers/applications [Installed](https://github.com/brave/browser-laptop/blob/master/docs/prerequisites.md) 1. Clone the git repository from GitHub: # For beta testers: git clone --depth 1 https://github.com/brave/browser-laptop # For devs over HTTPS: git clone https://github.com/brave/browser-laptop # For devs over SSH: git clone git@github.com:brave/browser-laptop.git 2. Open the working directory: cd browser-laptop 3. Install the Node (v5+) dependencies: npm install If this fails on Linux with an error related to `abp-filter-parser-cpp`, try updating to Node 5.5 and `node-gyp` 3.2.1 (see discussion at https://github.com/brave/browser-laptop/issues/214) ## Development To start the server and file watchers run the following on the command line: npm run watch To run the browser: npm start To run the tests: npm run watch-test or npm run watch-all npm test ### Debugging See [docs/debugging.md](docs/debugging.md) for information on debugging. ### Running inside of a development version of Brave's Electron fork We are using a fork of Electron with some minor modifications here: https://github.com/brave/electron Most of the time you will not need to use that repository, we provide pre-built binaries when you `npm install` with our own fork of [electron-prebuilt](https://github.com/brave/electron-prebuilt). If you want to add code to Electron itself, then you may want to build it. An example would be exposing a new event to the webview from Electron. We try to upstream everything to [atom/electron](https://github.com/atom/electron) but we can take things in our fork early before upstreaming. Build instructions: - [OSX build instructions](https://github.com/brave/electron/blob/master/docs/development/build-instructions-osx.md) - [Windows build instructions](https://github.com/brave/electron/blob/master/docs/development/build-instructions-windows.md) - [Linux build instructions](https://github.com/brave/electron/blob/master/docs/development/build-instructions-linux.md) ## Packaging for bundles, installers, and updates ### OSX: From within brave-browser you can create a .app file for distribution: npm run build-package After the .app file is built you can create a dmg and update zip with: IDENTIFIER=XYZ npm run build-installer Where XYZ is your signing identifier. ### Windows 7,8,10 x64: To create a folder with the app .exe and all dependencies: npm run build-package After the above folder is created, you can create a setup (exe, msi, RELEASES file and update nupkg) with: CERT_PASSWORD=‘XYZ’ npm run build-installer Where XYZ is your authenticode signing password. ### Linux: To create a package: npm run build-package