ElectronNET / Electron.NET

:electron: Build cross platform desktop apps with ASP.NET Core (Razor Pages, MVC, Blazor).
https://gitter.im/ElectronNET/community
MIT License
7.3k stars 726 forks source link

Can I dynamically choose the Electron version? #841

Open 17621706783 opened 6 months ago

17621706783 commented 6 months ago

🚨 The issue tracker is not for questions 🚨

I have an arm64 machine currently, and due to its driver not supporting GPU, I need to downgrade the Electron version. Can I dynamically choose the Electron version? I noticed that 23.2.0 is fixed in the parameters within the Build method.

FlorianRappl commented 6 months ago

Unfortunately no.

I want to decouple these two things (Electron.NET API and Electron - using an adapter library), but developing that takes time. The advantage would be that fixes in Electron.NET would then be applied to all versions of Electron (at least supported by the adapter), whereas now you will need to stick to the version of Electron that comes with Electron.NET.

I wish I could prioritize this project, but I don't see any demand for it.

gorsheninmv commented 5 months ago

Yup, this is possible donet tool run electronize build <your args> /electron-params "-c.electronVersion=29.3.1" Note that it's not officially supported feature, but workaround

+1 for decoupling Electron.NET API and Electron versions