Skip to content

Migrating Current Electron version to Stable Electron version#392

Merged
lrasmus merged 6 commits intoStatTag:masterfrom
Ayush4958:migrate-electron-latest-stable
Apr 13, 2026
Merged

Migrating Current Electron version to Stable Electron version#392
lrasmus merged 6 commits intoStatTag:masterfrom
Ayush4958:migrate-electron-latest-stable

Conversation

@Ayush4958
Copy link
Copy Markdown
Contributor

Summary

Update the current electron version to higher stable version of electron.

Changes

  • In main.dev.js , i had modernize the window creation process by using promise based approach as it's prefer in newer electron version
app.whenReady().then(createWindow);
  • In package.json , I had updated electron version along with its ecosystem dependency (builder , rebuild , log , updater)
    and there is change in script of start-main-dev , which is done as the older script giving error in main process .

  • In yarn.lock Auto-generated the latest dependency constraints strictly correlating with the package.json upgrade.

Test

Already runs all the Test cases & It passes all in my end.

Copy link
Copy Markdown
Contributor

@lrasmus lrasmus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This overall seems to be working so far, but I'm confused where you got some of the version numbers that you used for the upgrade. 3 of the versions don't exist and were triggering warnings for me. Please confirm that any version number we use for a package exists.

Comment thread package.json Outdated
"electron-debug": "^3.0.1",
"electron-log": "^5.4.1",
"electron-updater": "^6.6.2",
"electron-log": "^5.5.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears the latest version of electron-log is 5.4.3? I'm getting a warning when running setup:
Couldn't find any versions for "electron-log" that matches "^5.5.0"

Although it prompts me to select the version I want to use, we should only include currently available versions.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yhh , These are not the valid version , I got list of version in terminal for these and selected from the list and didn't cross check if they are valid or not .
I had updated the dependencies

Comment thread package.json Outdated
"electron-log": "^5.4.1",
"electron-updater": "^6.6.2",
"electron-log": "^5.5.0",
"electron-updater": "^6.10.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as with electron-log, the latest electron-updater appears to be 6.8.3.

Comment thread package.json Outdated
"electron": "33.4.11",
"electron-builder": "^24.13.3",
"electron": "39.8.5",
"electron-builder": "^24.15.0",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no 24.15 of electron-builder. Do you know if this needs to work with the latest 24.* release, or can we upgrade to 26.*?

@Ayush4958 Ayush4958 force-pushed the migrate-electron-latest-stable branch 2 times, most recently from 3d16876 to 88e36ca Compare April 11, 2026 06:56
Signed-off-by: Ayush <bhandariayush935@gmail.com>
Signed-off-by: Ayush <bhandariayush935@gmail.com>
Signed-off-by: Ayush <bhandariayush935@gmail.com>
Signed-off-by: Ayush <bhandariayush935@gmail.com>
@Ayush4958 Ayush4958 force-pushed the migrate-electron-latest-stable branch from f53aacf to 6de50b6 Compare April 11, 2026 07:12
@Ayush4958
Copy link
Copy Markdown
Contributor Author

@lrasmus ,
Everything correct had been updated to correct version

Copy link
Copy Markdown
Contributor

@lrasmus lrasmus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much, @Ayush4958!

@lrasmus lrasmus merged commit 272d11b into StatTag:master Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants