Assorted Desktop App repo fixes (#3065)

* Fix ESLint and turn on the check in CI

* npm audit fix

* Remove electron-rebuild, use electron-builder for robotjs

* Add mochawesome-report to eslintignore

* Remove linebreak-style

* Revert "Remove electron-rebuild, use electron-builder for robotjs"

This reverts commit be35eb7300df725e381538dd30446a9acb8ab1df.
This commit is contained in:
Devin Binnie
2024-06-14 11:46:35 -04:00
committed by GitHub
parent bf07674d68
commit be182ac513
6 changed files with 21 additions and 16 deletions

View File

@@ -1,14 +1,14 @@
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
var fs = require('fs');
var path = require('path');
const fs = require('fs');
const path = require('path');
exports.default = async function beforePack(context) {
// The debian packager (fpm) complains when the directory to output the package to doesn't exist
// So we have to manually create it first
var dir = path.join(context.outDir, context.packager.appInfo.version)
if (!fs.existsSync(dir)){
const dir = path.join(context.outDir, context.packager.appInfo.version);
if (!fs.existsSync(dir)) {
fs.mkdirSync(dir, {recursive: true});
}
};