- Electron Projects
- Denys Vuika
- 239字
- 2021-06-24 12:14:34
Packaging for multiple platforms
Please note that running on all platforms does not necessarily mean that you can test and run all the installation packages on a single platform. This means you cannot, for example, launch Windows installers on Linux, or macOS installers on Windows. You may need to have access to either real machines with their respective platforms, or virtual machines, running with VirtualBox, Parallels, or any other modern virtualization software.
There are many community tools that you can use to build and package Electron applications for production. We are going to use electron-builder (https://www.electron.build/) for this purpose.
According to its documentation, electron-builder is as follows:
With this tool, for example, you can create distribution packages for all platforms when developing only on macOS, or any other platform.
Before we continue, let's install it for our project with the following command:
npm i -D electron-builder
Now, let's look at how we can set up the packaging scripts, depending on your target platform. We are going to package our Electron application for macOS, Ubuntu Linux, and Windows 10 with a minimal set of configuration parameters.
- Vue.js入門與商城開發實戰
- 羅克韋爾ControlLogix系統應用技術
- 數據結構簡明教程(第2版)微課版
- PhoneGap Mobile Application Development Cookbook
- Linux命令行與shell腳本編程大全(第4版)
- Tableau 10 Bootcamp
- Python 3.7從入門到精通(視頻教學版)
- Canvas Cookbook
- Scala Functional Programming Patterns
- Java高級程序設計
- Android初級應用開發
- RESTful Web API Design with Node.js
- Python程序設計現代方法
- Python程序員面試算法寶典
- Visual C++ 開發從入門到精通