When one runs the following command for the first time in theĭownload the darwin 圆4 build of Electron 1.4.15 (and cache the downloads inĭirectory was not specified, it used the current working directory)įolder generated can be executed by a system running macOS, which will start the packaged Electron app. Platform with the following file structure: Let's assume that you have made an app based on the electron-quick-start repository on a (This behavior can be turned off with the , by default none of the modules related to thoseĭependencies will be copied in the app bundles. If not, check your settings and try again. You should be able to launch the app on the platform you built for. Is omitted, this will use the name specified by "productName" or "name" in the nearest package.json.Ĭharacters in the Electron app name which are not allowed in all target platforms' filenames Otherwise, a single bundle for the host platform/architecture will be created.įor an overview of the other optional flags, runĭetailed descriptions, see the API documentation. Instead, bundles for all valid combinations of target (this can be customized via an optional flag) Use that version of Electron to create an app in Npx electron-packager -platform= -arch= įind or download the correct release of Electron Running Electron Packager from the command line has this basic form: A Windows executable is bundled in that Node package and needs to be run in order for this Note for macOS / Mac App Store target bundles: theīundle can only be signed when building on a host macOS platform.īuilding an Electron app for the Windows target platform requires editing the Linux (for x86, x86_64, armv7l, arm64, and mips64el architectures) , for x86, x86_64, and arm64 architectures) Platform, target arch, and Electron versionĮlectron-v$.zipĮlectron Packager is known to run on the following A zipped, minimal ElectronĪpplication is approximately the same size as the zipped prebuilt binary for a given target Internally), or one of the related Electron tools, which utilizesĮlectron Packager-created folders as a basis. Source code with a renamed Electron executable and supporting files into folders ready for distribution.įor creating distributables like installers and Library that bundles Electron-based application
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |