Merge pull request #79 from mattermost/rename-app

Rename electron-mattermost to Mattermost at implementation
Drop `v` from version name when releasing
This commit is contained in:
Yuya Ochiai 2016-03-20 23:16:45 +09:00
commit babda10dc9
12 changed files with 72 additions and 66 deletions

View file

@ -19,8 +19,8 @@ Following points are very helpful to understand the problem.
* How to reproduce, step-by-step
* Expected behavior (or what is wrong)
* Screenshots (for GUI issues)
* electron-mattermost version
* OS
* Application version
* Operating system
* Mattermost version
## Feature idea

View file

@ -23,28 +23,32 @@ Originally created as "electron-mattermost" by Yuya Ochiai. Developed using [Ele
### Pre-packaged
You don't have to install any other software.
Packages are available on the [releases page](http://github.com/yuya-oc/electron-mattermost/releases).
Packages are available on the [releases page](http://github.com/mattermost/desktop/releases).
## Usage
### Installation
Detailed guides are available at [docs/setup.md](docs/setup.md).
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 name and URL for your Mattermost team. For example, `myteam : http://mattermost.example.com/team`.
1. Download and unarchive a file from [release page](http://github.com/mattermost/desktop/releases).
2. Launch `Mattermost` in the unarchived folder.
3. After first launching, please input name and URL for your Mattermost team. For example, `myteam : https://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.)
(Please press Alt key to show the menu bar if it disappers.)
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
* `%APPDATA%\Mattermost` on Windows
* `~/Library/Application Support/Mattermost` on OS X
* `~/.config/Mattermost` on Linux
*When you upgrade from electron-mattermost, please copy `config.json` from `electron-mattermost`.
Otherwise, you have to configure again.*
## Testing and Development
Node.js is required to test this app.

View file

@ -16,14 +16,16 @@ dependencies:
post:
- mkdir -p ~/.electron
- docker run --rm -it -v `pwd`:/home/xclient/electron-mattermost -v ~/.electron:/home/xclient/.electron yuyaoc/em-builder:dev ./electron-mattermost/docker/package_in_docker.sh
- mv release/electron-mattermost-win32-ia32 release/electron-mattermost-win32
- mv release/electron-mattermost-win32-x64 release/electron-mattermost-win64
- mv release/electron-mattermost-darwin-x64 release/electron-mattermost-osx
- cd release && zip -9 -r $CIRCLE_ARTIFACTS/electron-mattermost-win32.zip electron-mattermost-win32
- cd release && zip -9 -r $CIRCLE_ARTIFACTS/electron-mattermost-win64.zip electron-mattermost-win64
- tar zcvf $CIRCLE_ARTIFACTS/electron-mattermost-osx.tar.gz -C release electron-mattermost-osx
- tar zcvf $CIRCLE_ARTIFACTS/electron-mattermost-linux-ia32.tar.gz -C release electron-mattermost-linux-ia32
- tar zcvf $CIRCLE_ARTIFACTS/electron-mattermost-linux-x64.tar.gz -C release electron-mattermost-linux-x64
- mv release/Mattermost-win32-ia32 release/mattermost-desktop-win32
- mv release/Mattermost-win32-x64 release/mattermost-desktop-win64
- mv release/Mattermost-darwin-x64 release/mattermost-desktop-osx
- mv release/Mattermost-linux-ia32 release/mattermost-desktop-linux-ia32
- mv release/Mattermost-linux-x64 release/mattermost-desktop-linux-x64
- cd release && zip -9 -r $CIRCLE_ARTIFACTS/mattermost-desktop-win32.zip mattermost-desktop-win32
- cd release && zip -9 -r $CIRCLE_ARTIFACTS/mattermost-desktop-win64.zip mattermost-desktop-win64
- tar zcvf $CIRCLE_ARTIFACTS/mattermost-desktop-osx.tar.gz -C release mattermost-desktop-osx
- tar zcvf $CIRCLE_ARTIFACTS/mattermost-desktop-linux-ia32.tar.gz -C release mattermost-desktop-linux-ia32
- tar zcvf $CIRCLE_ARTIFACTS/mattermost-desktop-linux-x64.tar.gz -C release mattermost-desktop-linux-x64
test:
override:

View file

@ -3,6 +3,7 @@ set -ex
wget -q https://github.com/aktau/github-release/releases/download/v0.6.2/linux-amd64-github-release.tar.bz2
tar jxvf linux-amd64-github-release.tar.bz2
GITHUB_RELEASE=`pwd`/bin/linux/amd64/github-release
RELEASE_TAG=${CIRCLE_TAG#v}
upload()
{
@ -15,9 +16,9 @@ make_zip()
{
OLDDIR=`pwd`
ARCH=$1
cp -r release/electron-mattermost-$ARCH /tmp/electron-mattermost-$CIRCLE_TAG-$ARCH
cp -r release/mattermost-desktop-$ARCH /tmp/mattermost-desktop-$RELEASE_TAG-$ARCH
cd /tmp
zip -9 -r electron-mattermost-$CIRCLE_TAG-$ARCH.zip electron-mattermost-$CIRCLE_TAG-$ARCH
zip -9 -r mattermost-desktop-$RELEASE_TAG-$ARCH.zip mattermost-desktop-$RELEASE_TAG-$ARCH
cd $OLDDIR
}
@ -25,9 +26,9 @@ make_tar_gz()
{
OLDDIR=`pwd`
ARCH=$1
cp -r release/electron-mattermost-$ARCH /tmp/electron-mattermost-$CIRCLE_TAG-$ARCH
cp -r release/mattermost-desktop-$ARCH /tmp/mattermost-desktop-$RELEASE_TAG-$ARCH
cd /tmp
tar zcvf electron-mattermost-$CIRCLE_TAG-$ARCH.tar.gz electron-mattermost-$CIRCLE_TAG-$ARCH
tar zcvf mattermost-desktop-$RELEASE_TAG-$ARCH.tar.gz mattermost-desktop-$RELEASE_TAG-$ARCH
cd $OLDDIR
}
@ -40,7 +41,7 @@ deploy()
"tar.gz" ) make_tar_gz $ARCH ;;
"*" ) echo "Invalid ARCHIVE_FORMAT: $ARCHIVE_FORMAT" && exit 1 ;;
esac
FILE=electron-mattermost-$CIRCLE_TAG-$ARCH.$ARCHIVE_FORMAT
FILE=mattermost-desktop-$RELEASE_TAG-$ARCH.$ARCHIVE_FORMAT
upload "$FILE" /tmp/$FILE
}

View file

@ -4,7 +4,7 @@
To set up the Mattermost desktop application for Windows 7, 8 and 10:
1. Download [the latest release](https://github.com/yuya-oc/electron-mattermost/releases) of electron-attermost
1. Download [the latest release](https://github.com/mattermost/desktop/releases) of Mattermost Desktop
Find the file ending in `-win64.zip` if you're running a x64 version of Windows and `-win32.zip` if you're running an older 32-bit version.
@ -12,7 +12,7 @@ To set up the Mattermost desktop application for Windows 7, 8 and 10:
A new directory should be created on your PC.
3. Go to `/electron-mattermost...` directory and find the file named `electron-mattermost`
3. Go to `/mattermost-desktop...` directory and find the file named `Mattermost`
- Right-click the file and select "Pin to Taskbar" to make the application available from your Windows task bar.
- Right-click the file and select "Pin to Start Menu" to make the application available from your Windows Start menu.
@ -58,7 +58,7 @@ Click the `Alt` key to toggle the menu on and off.
Below lists menu options (shortcut keys are listed in brackets):
- **File**
- **About electron-mattermost** - Shows version information for Mattermost desktop application
- **About Mattermost** - Shows version information for Mattermost desktop application
- **Settings** - Opens setting menu to add new team sites and configure shortcut key options
- **Quit** (Ctrl+Q) - Exits the application
- **Edit**
@ -90,7 +90,7 @@ If pinned to the Windows Task Bar in Step 3 of the setup procedure, a shortcut t
## Step-by-step OS X setup
For OS X 10.11 El Capitan. An older version of OS X has similar way.
1. Download [the latest release](https://github.com/yuya-oc/electron-mattermost/releases) of electron-mattermost
1. Download [the latest release](https://github.com/mattermost/desktop/releases) of Mattermost Desktop
Find the file ending in `-osx.tar.gz`.
@ -98,13 +98,13 @@ For OS X 10.11 El Capitan. An older version of OS X has similar way.
A new directory should be created on your Mac.
3. Go to `/electron-mattermost...` directory and right-click on `electron-mattermost` package and select "Open"
3. Go to `/mattermost-desktop...` directory and right-click on `Mattermost` package and select "Open"
If you see a dialog to confirm the application, select "Open".
You should see a new application called **electron-mattermost** open.
You should see a new application called **Mattermost Desktop** open.
4. Click `electron-mattermost` from the menu at the top of the screen, then click `Settings`
4. Click `Mattermost` from the menu at the top of the screen, then click `Settings`
5. For each Mattermost team you'd like to use, enter its **Name** and **URL** then click **Add**

View file

@ -148,7 +148,6 @@ function makePackage(platform, arch, callback) {
var packageJson = require('./src/package.json');
packager({
dir: './dist',
name: packageJson.name,
platform: platform,
arch: arch,
version: require('./package.json').devDependencies['electron-prebuilt'],
@ -160,10 +159,10 @@ function makePackage(platform, arch, callback) {
"version-string": {
CompanyName: packageJson.author,
LegalCopyright: 'Copyright (c) 2015 ' + packageJson.author,
FileDescription: packageJson.name,
OriginalFilename: packageJson.name + '.exe',
FileDescription: packageJson.description,
OriginalFilename: packageJson.productName + '.exe',
ProductVersion: packageJson.version,
ProductName: packageJson.name,
ProductName: packageJson.productName,
InternalName: packageJson.name
}
}, function(err, appPath) {
@ -200,6 +199,7 @@ gulp.task('sync-meta', function() {
var appPackageJson = require('./src/package.json');
var packageJson = require('./package.json');
appPackageJson.name = packageJson.name;
appPackageJson.productName = packageJson.productName;
appPackageJson.version = packageJson.version;
appPackageJson.description = packageJson.description;
appPackageJson.author = packageJson.author;

View file

@ -1,7 +1,8 @@
{
"name": "electron-mattermost",
"name": "mattermost-desktop",
"productName": "Mattermost",
"version": "1.0.7",
"description": "Electron-based desktop application for Mattermost",
"description": "Mattermost Desktop application for Windows, Mac and Linux",
"main": "main.js",
"author": "Yuya Ochiai",
"license": "MIT",

View file

@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<title>electron-mattermost</title>
<title>Mattermost</title>
<link rel="stylesheet" href="modules/bootstrap/css/bootstrap.min.css">
</head>

View file

@ -221,7 +221,7 @@ var MattermostView = React.createClass({
var currentURL = url.parse(webview.getURL());
var destURL = url.parse(e.url);
if (currentURL.host === destURL.host) {
window.open(e.url, 'electron-mattermost');
window.open(e.url, 'Mattermost');
} else {
// if the link is external, use default browser.
require('shell').openExternal(e.url);

View file

@ -49,9 +49,6 @@ var mainWindow = null;
var trayIcon = null;
var willAppQuit = false;
// For toast notification on windows
app.setAppUserModelId('yuya-oc.electron-mattermost');
// Quit when all windows are closed.
app.on('window-all-closed', function() {
// On OS X it is common for applications and their menu bar

View file

@ -1,7 +1,8 @@
{
"name": "electron-mattermost",
"name": "mattermost-desktop",
"productName": "Mattermost",
"version": "1.0.7",
"description": "Electron-based desktop application for Mattermost",
"description": "Mattermost Desktop application for Windows, Mac and Linux",
"main": "main.js",
"author": "Yuya Ochiai",
"license": "MIT",

View file

@ -30,7 +30,7 @@ var options = {
}
};
describe('electron-mattermost', function() {
describe('mattermost-desktop', function() {
this.timeout(10000);
var chromedriver;