Ionic v4 Electron build

#1

Hey guys,

Did anyone already an sucessfull electron build with ionic v4?
I saw in the official beta docs that this is natively supported.
Link to Docs
Also I saw what requirements I have for the specific OS but I can’t find anywhere an guide what I have to do.
Can anyone say me what I have to do?

1 Like
#2

Can you provide a link for that?

#3

Sry yes. I added it to my post.

#4

I have no idea - but I really hope it will be a command line such as

Ionic build electron

but for now there is nothing stopping you using electron there are plenty of guides out there.

#5

So @JAR19, you mean there is no specific way from Ionic to build an electron app with a CLI command?
So far I read I have to change some lines in package,json etc. to do an normal electron build process.
And I didn’t see in any electron build guide that they are using the Windows 10 SDK or am I wrong? Because the Ionic Doc says that I will need this.

#6

The docs tell you to install “electron-windows-store”. That docs: https://github.com/felixrieseberg/electron-windows-store#usage

#7

I haven’t tried it, but Capacitor has preliminary support for Electron:
https://capacitor.ionicframework.com/docs/electron/

#8

It was the first thing I looked at when the beta documentation came out - as it was widely talked about as a feature of version 4. All I could find was a link for electron.

Electron is very easy to do - if you want I could send you my Electron setup (just send me a message) - all you have to do is replace the www folder.

#9

@JAR19 I’d like to know how to setup electron to get it working. Could you please help me?

#10

Just follow the following: (that is all I did)

https://robferguson.org/blog/2017/11/09/build-a-desktop-application-with-ionic-3-and-electron/

#11

@JAR19 could I see your Electron setup, please?

#12

Send me a message and I send you a link .