![]() ![]() This will ensure that your desktop application runs on the latest framework and platform version. Any changes in your electron framework will be updated automatically via update-electron-app. Automatic update: Enables automatic updates of the application on Mac and Windows.Open source: It is maintained in GitHub by an active community that supports its features.However, your Electron desktop application will be compatible with macOS, Windows, and Linux as it is built on node.js and Chromium. Cross-Platform: Desktop applications are mostly platform-specific, so you’ll need to create one for each platform.There are multiple advantages when using the Electron framework: It supports all the latest web technologies like CSS, JavaScript, and HTML and creates a base for your web application so that it can be executed as a desktop application. You can convert it to a desktop app with the help of the Electron framework. Let’s create this build directory and save our icon inside (Windows app icon has to be icon.ico format).If you want to make your website available as a desktop application, you don’t need to build a new application from scratch. You can add files like background images and app icons in the build directory in the project root. Also, we will add an icon, so let’s add a property icon and point it to the build/icon.ico "build": ,Įarlier, we mentioned that we want to add an icon to our app and installer. ![]() json file and specify the appId (in our case, I will write ) and the platform for which we want to build (in our case, this is a win platform and a type target installer will be a type of NSIS. Specify the build configuration by adding new build node in the. ![]() Now, let’s navigate to our package.json, because we need to add some build configuration to tell electron-builder how to build our application. NSIS (Nullsoft Scriptable Install System) is a professional open source system to create Windows installers.īegin by installing electron-builder module as a dev dependency. Since I have a Windows machine, I will show you how to build NSIS installer. In this tutorial, we will take a look at using electron-builder to package and build a ready for distribution Electron app. This tutorial assumes you know how to install and setup electron-quick-start project. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |