Fix ApplicationUserModelID in the start menu shortcut

The application expected "com.squirrel.mattermost.Mattermost"
due to electron-winstaller. But probably the package name,
"mattermost-desktop" was used when creating the shortcut.

This might affect the internal name of .deb package.

Close #287
This commit is contained in:
Yuya Ochiai 2016-09-16 23:02:45 +09:00
parent f32884c961
commit e8590e61d5
3 changed files with 3 additions and 2 deletions

View file

@ -1,5 +1,5 @@
{
"name": "mattermost-desktop",
"name": "mattermost",
"productName": "Mattermost",
"version": "3.4.0",
"description": "Mattermost Desktop application for Windows, Mac and Linux",

View file

@ -30,6 +30,7 @@ if (process.platform === 'win32') {
}
}
app.setAppUserModelId('com.squirrel.mattermost.Mattermost'); // Use explicit AppUserModelID
require('electron-squirrel-startup');
const fs = require('fs');

View file

@ -1,5 +1,5 @@
{
"name": "mattermost-desktop",
"name": "mattermost",
"productName": "Mattermost",
"desktopName": "Mattermost.desktop",
"version": "3.4.0",