electron-builder without electron - node.js

I actually only have a Node.js CLI application which I want to package as an AppImage and maybe even with auto-updater functionality. So is it possible to use electron-builder for a Node.js application without Electron?
If not, is there some other tool out there which can bundle a Node.js application into an AppImage?

Related

How to make my electron app install-able on Linux

Recently made build an application using Electron Framework. It is very basic. Now I have built it for Linux and published it to snap-store.
Now I want the application to be install-able by the apt-get command.
Is there any such way that I can do this?

How to run an Electron .exe app on Linux?

I'm trying to run an application build with Electron on Linux. They app maker offers an .exe installation file. So I figured I'd install it in WINE, but I seem to be missing something the app needs to run.
Since the install is an .exe, do I need WINE? And if I need WINE, what do I need to install to make the app work? I have tried two Electron apps, both only downloadable as a .exe install file.
Electron adds os native calls, so .exe files usually do not work. WINE is not able to emulate all of those calls, so if it isn't working for you, then you are out of luck I guess. Look for apps that offer linux versions, like https://www.electronjs.org/apps/camunda-modeler. If you have access to the repository, chances are they build it using electron-builder. You can just build it yourself with the command electron-builder build --linux in most cases

upgrading node for electron

I am creating an app using electron framework but when I'm trying to use async functions it gives me an error.
Because my electron uses node version 6.5.0 but node in this version doesn't support async functions.
So I am trying to upgrade my electron's node but I don't know how to create a branch or stuff like that since https://electronjs.org/docs/development/upgrading-node is the only link I found to explain this matter but I can't understand it. Can I upgrade node in my electron framework in another way?
Can I upgrade node in my electron framework in another way
No, you cannot. Electron links a specific version of node with chromium in its build time, so each version of electron have a fixed version of node.js and cannot be replaced dynamically.
Either use a higher version of the electron have higher node.js version, try to manually build electron yourself is the only way to go.

Google App Engine - Node.js with all locales

I have developed a Node.js application on my system. The app is using French locale and is working properly on my system because I installed Node.js with --with-intl=system-icu option.
When I deploy it to google using gcloud app deploy it doesn't work properly. I searched online and found that the default installation of Node.js doesn't contain all the locales.
Is there any way I can install Node.js with all locales for the Google App Engine?
You can install things that are not offered by default in Google App Engine if you use Custom Runtimes in the Flexible Environment.
Custom Runtimes let you define your own Dockerfile where you can add commands like:
RUN npm install full-icu
I found this example for Dockerizing a Node.js web app, which may help you.

Node Native AddOn in Electron Cross-Platform Use

If I use a Node native addon in an Electron app that will be used on Mac and Windows, do I need to do anything special to ensure that the correct flavor of the add-on (Mac or Windows) is used in each build? I'm developing on Windows, but users will also be running on Mac. I'll build the output with Electron-Builder.
Thanks.

Resources