Official OSX, Windows, and Linux Desktop Clients for Rocket.Chat
Go to file
gerbsen e1865861de
Merge pull request #1 from RocketChat/develop
2018-09-25 18:13:57 +02:00
.github Update 2018-09-25 10:59:27 -03:00
build Set new DMG background 2018-09-13 17:42:28 -03:00
config Env config added 2015-04-26 13:03:57 +02:00
dictionaries Fix speed issues with spell check 2017-02-04 10:30:53 +00:00
scripts Fix and improve CI build 2017-07-20 00:33:35 +01:00
src Remove icon from about dialog on Windows 2018-09-20 00:44:34 -03:00
tasks Move e2e directory under src directory 2018-09-18 21:54:01 -03:00
.editorconfig Update .editorconfig 2018-09-18 17:56:08 -03:00
.eslintignore Move e2e directory under src directory 2018-09-18 21:54:01 -03:00
.eslintrc Add 2018-09-18 17:55:49 -03:00
.gitignore Add script to debug mas-dev builds 2018-09-05 14:04:18 -03:00
.nvmrc Add .nvmrc 2017-02-03 11:36:44 -02:00
.stylelintrc Adding more contributors guidance 2016-12-26 18:44:59 -02:00
.travis.yml Add e2e tests on Travis CI 2018-09-14 15:46:37 -03:00 sync with file from main project 2016-12-26 18:33:44 -02:00 Adding more contributors guidance 2016-12-26 18:44:59 -02:00 Version 2.13.3 2018-09-18 11:10:05 -03:00
LICENSE Merge remote-tracking branch 'szwacz/master' into update-upstream 2017-01-06 15:40:41 -02:00 Move e2e directory under src directory 2018-09-18 21:54:01 -03:00 sync with file from main project 2016-12-26 18:33:44 -02:00
appveyor.yml Fix Windows releases 2018-08-30 15:33:45 -03:00
dev-app-update.yml Read update settings from install location 2017-05-21 22:13:57 +01:00
electron-builder.json Merge branch 'release/2.13.3' into develop 2018-09-18 11:35:34 -03:00
embedded.provisionprofile added embedded.provisionprofile 2018-09-06 16:49:18 -03:00
gulpfile.js [IMPROVE] Build tasks (#806) 2018-08-09 22:21:59 -03:00
package.json Update dependencies 2018-09-19 23:54:33 -03:00
yarn.lock Update dependencies 2018-09-19 23:54:33 -03:00

Rocket.Chat Desktop App Build Status Build status Project Dependencies Codacy Badge

Desktop application for Rocket.Chat available for macOS, Windows and Linux using Electron.


You can download the latest version from the Releases page.


Launch the installer and follow the instructions to install.

Windows Options

On Windows you can run a silent install by adding the /S flag. You can also add the options below:

  • /S - Silent install
  • /allusers - Install for all users (requires admin)
  • /currentuser - Install for current user only (default)


Quick start


Now just clone and start the app:

git clone
cd Rocket.Chat.Electron
yarn start

Structure of the project

The sources is located in the src folder. Everything in this folder will be built automatically when running the app with yarn start.

Stylesheets are written in less and are located in src/stylesheets. They will be build into a single main.css in the app folder.

The build process compiles all stuff from the src folder and puts it into the app folder, so after the build has finished, your app folder contains the full, runnable application.

The build pipeline

Build process is founded upon gulp task runner and rollup bundler. There are two entry files for your code: src/background.js and src/app.js. Rollup will follow all import statements starting from those files and compile code of the whole dependency tree into one .js file for each entry point.

Adding node modules

Remember to respect the split between dependencies and devDependencies in package.json file. Only modules listed in dependencies will be included into distributable app.

Working with modules

Thanks to rollup you can (and should) use ES6 modules for most code in src folder.

Use ES6 syntax in the src folder like this:

import myStuff from './my_lib/my_stuff';

The exception is in src/public. ES6 will work inside this folder, but it is limited to what Electron/Chromium supports. The key thing to note is that you cannot use import and export statements. Imports and exports need to be done using CommonJS syntax:

const myStuff = require('./my_lib/my_stuff');
const { myFunction } =  require('./App');



Follow the installation instruction on node-gyp readme.


You will need to install the following packages:



You will need to install the following packages:


Windows 7

On Windows 7 you may have to follow option 2 of the node-gyp install guide and install Visual Studio


Unit tests

yarn test

Using electron-mocha test runner with the chai assertion library. This task searches for all files in src directory which respect pattern *.spec.js.

End to end tests

yarn e2e

Using mocha test runner and spectron. This task searches for all files in src/e2e directory which respect pattern *.e2e.js.

Code coverage

yarn coverage

Using istanbul code coverage tool.

You can set the reporter(s) by setting ISTANBUL_REPORTERS environment variable (defaults to text-summary and html). The report directory can be set with ISTANBUL_REPORT_DIR (defaults to coverage).

Making a release

To package your app into an installer use command:

yarn release

It will start the packaging process for operating system you are running this command on. Ready for distribution file will be outputted to dist directory.

All packaging actions are handled by electron-builder. It has a lot of customization options, which you can declare under "build" key in package.json file.

Default servers

The servers.json file will define what servers the client will connect to and will populate the server list in the sidebar, it contains a list of default servers which will be added the first time the user runs the app (or when all servers are removed from the list). The file syntax is as follows:

  "Demo Rocket Chat": "",
  "Open Rocket Chat": ""

Pre-Release Configuration

You can bundle a servers.json with the install package, the file should be located in the root of the project application (same level as the package.json). If the file is found, the initial "Connect to server" screen will be skipped and it will attempt to connect to the first server in the array that has been defined and drop the user right at the login screen. Note that the servers.json will only be checked if no other servers have already be added, even if you uninstall the app without removing older preferences, it will not be triggered again.

Post-Install Configuration

If you can't (or don't want to) bundle the file inside the app, you can create a servers.json in the user preferences folder which will overwrite the packaged one. The file should be located in the %APPDATA%/Rocket.Chat/ folder or the installation folder in case of a installation for all users (Windows only).

For Windows the full paths are:

~\Program Files\Rocket.Chat\Resources\

On MacOS the full path is:

~/Users/<username>/Library/Application Support/Rocket.Chat/

On Linux the full path is:



Released under the MIT license.