-
Notifications
You must be signed in to change notification settings - Fork 812
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
[MM-47279] Upgrade to Electron v21 #2270
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a minor non-blocking comment about dependencies.
package.json
Outdated
@@ -173,6 +173,7 @@ | |||
"mmjstool": "github:mattermost/mattermost-utilities#3b4506b0f6b14fbb402f9f8ef932370e459e3773", | |||
"mocha-circleci-reporter": "0.0.3", | |||
"mochawesome": "7.1.3", | |||
"node-abi": "3.25.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(question) Is the explicit dependency needed here? All the packages that need it have it in their dependencies (e.g. electron-rebuild etc). Is this needed to pin it to a specific version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be able to remove this eventually, but for now it's needed because of how new Electron v21 is. Some of the downstream dependencies are using older versions of node-abi
so we need to make sure we have the latest.
So unfortunately this is now blocked due to issues with the NodeJS Native Abstractions, there's a PR waiting to be merged to fix it here: nodejs/nan#943 |
Good to know @devinbinnie , so I guess this one should be closed and the one that upgrades electron to the latest 19.1.1 will be the relevant one. |
@m1lt0n We can leave this one open for the time being, since I'd still like to upgrade to v21 once we're unblocked. It just won't be merged for a while. |
Building app in separate branch. |
Building app in separate branch. |
1 similar comment
@@ -174,6 +174,8 @@ | |||
"mmjstool": "github:mattermost/mattermost-utilities#3b4506b0f6b14fbb402f9f8ef932370e459e3773", | |||
"mocha-circleci-reporter": "0.0.3", | |||
"mochawesome": "7.1.3", | |||
"nan": "2.17.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were added to ensure compatibility with native code.
@@ -27,7 +27,7 @@ | |||
"build": "npm-run-all build:*", | |||
"build:main": "webpack-cli --config webpack.config.main.js", | |||
"build:renderer": "webpack-cli --config webpack.config.renderer.js", | |||
"build-robotjs": "electron-rebuild -v 19.1.2 -m ./node_modules/robotjs", | |||
"build-robotjs": "cross-env CL='/std:c++17' electron-rebuild -v 21.1.0 -m ./node_modules/robotjs", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to add a compiler flag for building RobotJS on Windows
1 similar comment
Failed to delete ref. @mattermost/core-build-engineers have been notified. Error |
Cherry pick is scheduled. |
* WIP * Fixed robotjs on windows (cherry picked from commit 0ac5360)
Summary
Upgrading to Electron v21
Ticket Link
https://mattermost.atlassian.net/browse/MM-47279