Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting Electron app to UWP app

I need some tips on how to convert a Electron app to Universal Windows Platform. I have imported all the JavaScript files into Visual studio 2017 and chosen Universal Windows Platform platform. My main problem is that I have renderers (renderer.js) which does not want to run when I compile the solution in Visual studio. I can build the solution, but when I run it I only get a white window. Any tips on how to solve this?

like image 608
IceCode Avatar asked Jul 05 '17 06:07

IceCode


People also ask

Are Electron apps UWP?

Electron is designed for 'Desktop' app, not for UWP app.

How do you make an Electron app executable?

Create the Electron based Syncfusion Application as mentioned in this link. Then package the application using Electron Packager, once packing completed JS_Electron-win32-ia32 folder will be created with Electron package file.


2 Answers

So i have found a solution for my problem.

I found that in the JS(UWP) applications manifest it was starting some main.js file. I changed this file to start the wanted index.html file and it resolved my problems. Sorry for having so little information to go on. Also enabling the KIOSK mode was really simple so everything is working out as wanted.

like image 126
IceCode Avatar answered Oct 04 '22 13:10

IceCode


Are you just wanting to submit on the store or want a proper universal app? If it's just the former, take a look at https://github.com/felixrieseberg/electron-windows-store

like image 44
Johnny Westlake Avatar answered Oct 04 '22 13:10

Johnny Westlake