Skip to content

feat: update drive destkop linux to electron 29 and node 20#332

Merged
AlexisMora merged 2 commits intofeat/go-fuse-daemonfrom
feat/electron-29-node-20
May 8, 2026
Merged

feat: update drive destkop linux to electron 29 and node 20#332
AlexisMora merged 2 commits intofeat/go-fuse-daemonfrom
feat/electron-29-node-20

Conversation

@AlexisMora
Copy link
Copy Markdown

@AlexisMora AlexisMora commented May 8, 2026

What has changed

Electron 29 runs on Node 20, and start:main was passing src/apps/main/main.ts directly to Electron.

With Electron 29 Node runtime, the entrypoint is resolved through Node ESM loader path. Node does not execute .ts files natively, and the ESM loader does not use the CommonJS hook installed by ts-node/register.

I have added a small .js script that allows electron to load the start-main-dev.js first, then the script registers ts-node, then require()s main.ts. At that point the CommonJS require hook can compile TypeScript on demand.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 8, 2026

Comment thread beforeBuild.js
@@ -1,4 +1,4 @@
const electronRebuild = require('electron-rebuild');
const electronRebuild = require('@electron/rebuild');
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This got changed because i saw that the dependency electron-rebuild got deprecated in favor of this new one, and they also state that there is not api change, just package name

@AlexisMora AlexisMora merged commit 9dc31ea into feat/go-fuse-daemon May 8, 2026
10 of 11 checks passed
@AlexisMora AlexisMora deleted the feat/electron-29-node-20 branch May 8, 2026 13:23
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