[MM-52696] Upgrade and clean up Desktop App dev dependencies (#2970)
* Upgrade to ESLint v8 * Upgrade TypeScript, api-types, react-intl * Remove unnecessary dependencies * Update to React 17.0.2 * npm audit fixes, remove storybook * Lock some packages * Remove nan patch * Remove some deprecated dependencies * Fix lint/type/tests * Merge'd * Fix bad use of spawn * Fix notarize * Fix afterpack, switch to tsc es2020 * Fix api types * Use @mattermost/eslint-plugin
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
const fs = require('fs');
|
||||
const jq = require('node-jq');
|
||||
const path = require('path');
|
||||
|
||||
const jq = require('node-jq');
|
||||
|
||||
// Patch the macos-notification-state library so we can build correctly
|
||||
jq.run(
|
||||
'.scripts.install = "node-gyp rebuild"',
|
||||
@@ -22,7 +23,7 @@ if (process.platform === 'linux') {
|
||||
if (fs.existsSync(xdgDir) && !fs.existsSync(path.resolve(xdgDir, 'mattermost-desktop-dev.desktop'))) {
|
||||
fs.writeFileSync(
|
||||
path.resolve(xdgDir, 'mattermost-desktop-dev.desktop'),
|
||||
`[Desktop Entry]
|
||||
`[Desktop Entry]
|
||||
Name=Mattermost.Dev
|
||||
Exec=${path.resolve(process.cwd(), 'node_modules/electron/dist/electron')} ${path.resolve(process.cwd(), 'dist')} %U
|
||||
Terminal=false
|
||||
@@ -32,7 +33,7 @@ StartupWMClass=Mattermost
|
||||
Comment=Mattermost
|
||||
MimeType=x-scheme-handler/mattermost-dev;
|
||||
Categories=contrib/net;
|
||||
`
|
||||
`,
|
||||
);
|
||||
|
||||
const defaultsListPath = path.resolve(xdgDir, 'defaults.list');
|
||||
|
Reference in New Issue
Block a user