#No installation-Standalone desktop app on Windows 10 with a Python Script as Backend

17 messages · Page 1 of 1 (latest)

mental kite
#

Hey guys, this is my first time asking a question, so I hope this is extensive enough:

My aim is to create a python script with a (preferably) Electron as the frontend for GUI purposes. For now I have been using python Eel, but it has not been maintained for quite a while and I would like to just switch to Electron.

Basically the process looks something like this:

  • Doubleclick on .exe file to open up the GUI.
  • There press the button to create a text file with prerecorded text in it.
  • The frontend send a signal to python backend to create a file and populate it with the predefined text.
  • Get the response and show that it is done.
  • From what I have gathered, it is possible for frontend to communicate with python backend using zerorpc package.

I tried to recreate it using the guide, but when building the app for deployment, it requires installation, whereas python Eel is just standalone and it's possible to run it without installation.

Is there a possible way to make Electron desktop apps on Windows standalone?

I appreciate the feedback!

Have a good day!

west wolf
#

standalone?

#

yes you can use electron app without installation

mental kite
#

Oh!

#

Is there an option/flag during distribution that I have to write in order for it to be used without installation?

west wolf
#

depends on build tools

#

electron-packager for example only build an app

mental kite
#

Thank you! I'll try it out with electron-packager

silent dome
#

You can make portable versions with electron-builder as well

west wolf
#

portable just unzip app into temp folder

#

and run it

silent dome
#

and don't use zerorpc. we switched out from it since it limited our electron version

#

ah. well its another option

mental kite
#

sorry if I'm asking stupid questions

silent dome
#

Not at all

#

We use flask in our app.