Npm i electron10/29/2023 force (optional) - Default: false - Force a rebuild of modules regardless of their current build state // headerURL (optional) - Default: - The URL to download Electron header files from // types (optional) - Default: - The types of modules to rebuild // mode (optional) - The rebuild mode, either 'sequential' or 'parallel' - Default varies per platform (probably shouldn't mess with this one) // useElectronClang (optional) - Whether to use the clang executable that Electron used when building its binary.Register an Electron Application with Auth0 The "types" property will be ignored if this option is set. (The directory that contains your node_modules) // electronVersion - The version of Electron to rebuild for // arch (optional) - Default: process.arch - The arch to rebuild for // extraModules (optional) - Default: - An array of modules to rebuild as well as the detected modules // onlyModules (optional) - Default: null - An array of modules to rebuild, ONLY these module names will be rebuilt. // options: Object with the following properties // buildPath - An absolute path to your app's directory. Import rebuild from // Public: Rebuilds a node_modules directory with the given Electron version. How can I integrate this into Electron Packager?Įlectron-rebuild provides a function compatible with the afterCopy hook This package is automatically used with Electron Forge when packaging an Electron app. prebuild-tag-prefix GitHub tag prefix passed to prebuild-install. b, -debug Build debug version of modules o, -only Only build specified module, or comma separated s, -sequential Rebuild modules sequentially, this is enabled by p, -parallel Rebuild in parallel, this is enabled by default Separated list of "prod", "dev" and "optional". t, -types The types of dependencies to rebuild. e, -electron-prebuilt-dir The path to the prebuilt electron module Modules will only be rebuilt if theyĪlso match the types of dependencies being rebuilt w, -which-module A specific module to build, or comma separated m, -module-dir The path to the app directory to rebuild a, -arch Override the target architecture to something f, -force Force rebuilding modules, even if we would skip v, -version The version of Electron to build against Usage: electron-rebuild -version -module-dir
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |