70 lines
2.1 KiB
Markdown
70 lines
2.1 KiB
Markdown
# electron-mattermost
|
|
[![Circle CI](https://circleci.com/gh/yuya-oc/electron-mattermost.svg?style=svg)](https://circleci.com/gh/yuya-oc/electron-mattermost)
|
|
|
|
[Electron](http://electron.atom.io/)-based desktop application for [Mattermost](http://www.mattermost.org/)
|
|
|
|
## Features
|
|
|
|
### Desktop integration
|
|
* Tabs for multiple teams
|
|
* Notifications
|
|
* Desktop Notification
|
|
* Windows 10: Toast
|
|
* Windows 7-8.1: Balloon
|
|
* OS X: Notification Center
|
|
* Linux: libnotify ([Electron's notification spec](http://electron.atom.io/docs/v0.36.0/tutorial/desktop-environment-integration/#linux))
|
|
* Badges for unread channels
|
|
* Resident application
|
|
|
|
### Pre-packaged
|
|
You don't have to install any other software.
|
|
|
|
|
|
## Usage
|
|
|
|
### Installation
|
|
1. Download and unarchive a file from [release page](http://github.com/yuya-oc/electron-mattermost/releases).
|
|
2. Launch `electron-mattermost` in the unarchived folder.
|
|
3. After first launching, please input URL for your Mattermost team. For exmaple, `http://mattermost.example.com/team`.
|
|
|
|
### Quit
|
|
Ctrl or Command + Q to quit.
|
|
|
|
### Configuration
|
|
You can show the dialog from menu bar.
|
|
(On Windows, please press Alt key to show the menu bar.)
|
|
|
|
Configuration will be saved into Electron's userData directory:
|
|
* `%APPDATA%\electron-mattermost` on Windows
|
|
* `~/Library/Application Support/electron-mattermost` on OS X
|
|
* `~/.config/electron-mattermost` on Linux
|
|
|
|
|
|
## Testing and Development
|
|
Node.js is required to test this app.
|
|
|
|
### Simple testing
|
|
1. Clone or download the source code.
|
|
2. Run `npm install`.
|
|
3. Run `npm start`.
|
|
|
|
When you edit **.jsx** files, please execute `npm run build` before `npm start`.
|
|
|
|
### Development
|
|
#### `npm run serve`
|
|
Reload the app automatically when you have saved source codes.
|
|
|
|
#### `npm test`
|
|
Run tests with Mocha.
|
|
|
|
## Packaging
|
|
You can package this app with following commands. Packages will be created in `release` directory.
|
|
|
|
```
|
|
$ npm run package (for your platform)
|
|
$ npm run package:windows (Requires Windows or Wine)
|
|
$ npm run package:osx (Requires OS X or Linux)
|
|
$ npm run package:linux
|
|
$ npm run package:all (Packages for all platform)
|
|
```
|