Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted Desktop App repo fixes #3065

Merged
merged 6 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
api-types/lib
api-types/lib
mochawesome-report
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"react/no-find-dom-node": 2,
"no-underscore-dangle": ["warn"],
"@mattermost/use-external-link": 0,
"linebreak-style": 0,
"import/order": [
2,
{
Expand Down
3 changes: 3 additions & 0 deletions .github/actions/test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inputs:
runs:
using: "composite"
steps:
- name: ci/run-eslint
run: npm run lint:js-quiet
shell: ${{ inputs.shell }}
- name: ci/run-check-types
run: npm run check-types
shell: ${{ inputs.shell }}
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions scripts/beforepack.js
Original file line number Diff line number Diff line change
@@ -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});
}
};
2 changes: 1 addition & 1 deletion scripts/cp_msi_app_update.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

const fs = require('fs');
fs.copyFileSync('release/win-unpacked/resources/app-update.yml', 'release/msi-app-update.yml');
fs.unlinkSync('release/win-unpacked/resources/app-update.yml');
fs.unlinkSync('release/win-unpacked/resources/app-update.yml');
Loading